Fix updating upon containers or configuration changing

Copy-paste mistake...

Contributes to issue CURA-6597.
This commit is contained in:
Ghostkeeper 2019-07-04 12:29:02 +02:00
parent bd2237dc45
commit cf68157508
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -35,9 +35,9 @@ class IntentCategoryModel(ListModel):
self.addRoleName(self.IntentCategoryRole, "intent_category")
self.addRoleName(self.WeightRole, "weight")
ContainerRegistry.getInstance().containerAdded.connect(self._onChanged)
ContainerRegistry.getInstance().containerRemoved.connect(self._onChanged)
IntentManager.getInstance().configurationChanged.connect(self._onChanged)
ContainerRegistry.getInstance().containerAdded.connect(self.update)
ContainerRegistry.getInstance().containerRemoved.connect(self.update)
IntentManager.getInstance().configurationChanged.connect(self.update)
self.update()