mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
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:
parent
2c5cc17b49
commit
bb7fccbd48
9 changed files with 23 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
@ -26,6 +27,8 @@ class NozzleModel(ListModel):
|
|||
Application.getInstance().getMachineManager().activeMaterialChanged.connect(self._update)
|
||||
|
||||
def _update(self):
|
||||
Logger.log("d", "Updating {model_class_name}.".format(model_class_name = self.__class__.__name__))
|
||||
|
||||
self.items.clear()
|
||||
|
||||
variant_manager = Application.getInstance()._variant_manager
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue