Browse Source

Always set active extruder index when loading active machine on start - CURA-4482

ChrisTerBeke 7 years ago
parent
commit
7975420901
2 changed files with 2 additions and 4 deletions
  1. 2 3
      cura/Settings/MachineManager.py
  2. 0 1
      cura/Settings/QualitySettingsModel.py

+ 2 - 3
cura/Settings/MachineManager.py

@@ -106,9 +106,8 @@ class MachineManager(QObject):
         if active_machine_id != "" and ContainerRegistry.getInstance().findContainerStacks(id = active_machine_id):
             # An active machine was saved, so restore it.
             self.setActiveMachine(active_machine_id)
-            if self._global_container_stack and self._global_container_stack.getProperty("machine_extruder_count", "value") > 1:
-                # Make sure _active_container_stack is properly initiated
-                ExtruderManager.getInstance().setActiveExtruderIndex(0)
+            # Make sure _active_container_stack is properly initiated
+            ExtruderManager.getInstance().setActiveExtruderIndex(0)
 
         self._auto_materials_changed = {}
         self._auto_hotends_changed = {}

+ 0 - 1
cura/Settings/QualitySettingsModel.py

@@ -224,7 +224,6 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
                 if self._extruder_id == "" and settable_per_extruder:
                     continue
 
-
             label = definition.label
             if self._i18n_catalog:
                 label = self._i18n_catalog.i18nc(definition.key + " label", label)