Add logging for every setting model update

You can clearly see that some models are updated 4 times or so now.

Contributes to issue CURA-4606.
This commit is contained in:
Ghostkeeper 2018-03-12 14:48:28 +01:00
parent 2c5cc17b49
commit bb7fccbd48
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
9 changed files with 23 additions and 7 deletions

View file

@ -4,6 +4,7 @@
from PyQt5.QtCore import Qt
from UM.Application import Application
from UM.Logger import Logger
from UM.Qt.ListModel import ListModel
from UM.Util import parseBool
@ -29,6 +30,7 @@ class BuildPlateModel(ListModel):
self._update()
def _update(self):
Logger.log("d", "Updating {model_class_name}.".format(model_class_name = self.__class__.__name__))
global_stack = self._machine_manager._global_container_stack
if not global_stack:
self.setItems([])