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

@ -286,13 +286,10 @@ class MachineManager(QObject):
def _onInstanceContainersChanged(self, container):
container_type = container.getMetaDataEntry("type")
if container_type == "material":
self.activeMaterialChanged.emit()
elif container_type == "variant":
self.activeVariantChanged.emit()
elif container_type == "quality":
self.activeQualityChanged.emit()
self.activeVariantChanged.emit()
self.activeMaterialChanged.emit()
self.activeQualityChanged.emit()
self._updateStacksHaveErrors()