mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -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
|
@ -1,8 +1,9 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from PyQt5.QtCore import Qt, pyqtProperty
|
||||
from PyQt5.QtCore import Qt
|
||||
|
||||
from UM.Logger import Logger
|
||||
from UM.Qt.ListModel import ListModel
|
||||
|
||||
|
||||
|
@ -60,6 +61,8 @@ class MaterialManagementModel(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.activeMachine
|
||||
if global_stack is None:
|
||||
self.setItems([])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue