mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Fix updating upon containers or configuration changing
Copy-paste mistake... Contributes to issue CURA-6597.
This commit is contained in:
parent
bd2237dc45
commit
cf68157508
1 changed files with 3 additions and 3 deletions
|
@ -35,9 +35,9 @@ class IntentCategoryModel(ListModel):
|
||||||
self.addRoleName(self.IntentCategoryRole, "intent_category")
|
self.addRoleName(self.IntentCategoryRole, "intent_category")
|
||||||
self.addRoleName(self.WeightRole, "weight")
|
self.addRoleName(self.WeightRole, "weight")
|
||||||
|
|
||||||
ContainerRegistry.getInstance().containerAdded.connect(self._onChanged)
|
ContainerRegistry.getInstance().containerAdded.connect(self.update)
|
||||||
ContainerRegistry.getInstance().containerRemoved.connect(self._onChanged)
|
ContainerRegistry.getInstance().containerRemoved.connect(self.update)
|
||||||
IntentManager.getInstance().configurationChanged.connect(self._onChanged)
|
IntentManager.getInstance().configurationChanged.connect(self.update)
|
||||||
|
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue