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:
Arjen Hiemstra 2017-02-07 16:28:08 +01:00
parent 927055806c
commit 0292756ad7
2 changed files with 5 additions and 9 deletions

View file

@ -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()