diff --git a/cura/Machines/Models/IntentCategoryModel.py b/cura/Machines/Models/IntentCategoryModel.py index c7484808ee..53193bd73d 100644 --- a/cura/Machines/Models/IntentCategoryModel.py +++ b/cura/Machines/Models/IntentCategoryModel.py @@ -58,6 +58,6 @@ class IntentCategoryModel(ListModel): result.append({ "name": self.name_translation.get(category, catalog.i18nc("@label", "Unknown")), "intent_category": category, - "weight": list(self.name_translation.items()).index(category) + "weight": list(self.name_translation.keys()).index(category) }) super().update(result) \ No newline at end of file