Remove unnecessary listening to switching extruder tabs

Also fix unnecessary emitting of switching extruder tabs.

This should improve performance a lot. I tested a lot of things and am convinced that it didn't break anything. But the automated GUI tests and QA team should be the final arbiters of that...

Contributes to issue CURA-6793.
This commit is contained in:
Ghostkeeper 2019-10-15 15:01:45 +02:00
parent b5c6a0a1e3
commit ce4c5a1c93
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
5 changed files with 9 additions and 13 deletions

View file

@ -48,7 +48,10 @@ class IntentCategoryModel(ListModel):
ContainerRegistry.getInstance().containerAdded.connect(self._onContainerChange)
ContainerRegistry.getInstance().containerRemoved.connect(self._onContainerChange)
cura.CuraApplication.CuraApplication.getInstance().getMachineManager().activeStackChanged.connect(self.update)
machine_manager = cura.CuraApplication.CuraApplication.getInstance().getMachineManager()
machine_manager.activeMaterialChanged.connect(self.update)
machine_manager.activeVariantChanged.connect(self.update)
machine_manager.extruderChanged.connect(self.update)
self.update()