Browse Source

Fix updating upon containers or configuration changing

Copy-paste mistake...

Contributes to issue CURA-6597.
Ghostkeeper 5 years ago
parent
commit
cf68157508
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cura/Machines/Models/IntentCategoryModel.py

+ 3 - 3
cura/Machines/Models/IntentCategoryModel.py

@@ -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()