mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Do not limit containersChanged methods to a single container type
This may trigger a few extra updates, but allows us to use signal compression in the postponesignals context manager, which greatly improves performance.
This commit is contained in:
parent
927055806c
commit
0292756ad7
2 changed files with 5 additions and 9 deletions
|
@ -105,8 +105,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
|
||||
def _onExtruderStackContainersChanged(self, container):
|
||||
# The ExtrudersModel needs to be updated when the material-name or -color changes, because the user identifies extruders by material-name
|
||||
if container.getMetaDataEntry("type") == "material":
|
||||
self._updateExtruders()
|
||||
self._updateExtruders()
|
||||
|
||||
modelChanged = pyqtSignal()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue