Browse Source

Don't use extruders() but extruderList

The extruders() slot has been deprecated. We need to replace it with extruderList. I'm changing them one by one and testing each time whether everything still seems to function correctly, but it's fairly safe anyway.

Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
Ghostkeeper 4 years ago
parent
commit
bbf53c441f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Machines/Models/QualitySettingsModel.py

+ 1 - 1
cura/Machines/Models/QualitySettingsModel.py

@@ -152,7 +152,7 @@ class QualitySettingsModel(ListModel):
             if self._selected_position == self.GLOBAL_STACK_POSITION:
                 user_value = global_container_stack.userChanges.getProperty(definition.key, "value")
             else:
-                extruder_stack = global_container_stack.extruders[str(self._selected_position)]
+                extruder_stack = global_container_stack.extruderList[self._selected_position]
                 user_value = extruder_stack.userChanges.getProperty(definition.key, "value")
 
             if profile_value is None and user_value is None: