mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -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
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue