Browse Source

Fix binding extruder manager in machine actions view - CURA-4568

ChrisTerBeke 7 years ago
parent
commit
f41759e1dc
1 changed files with 4 additions and 4 deletions
  1. 4 4
      plugins/MachineSettingsAction/MachineSettingsAction.qml

+ 4 - 4
plugins/MachineSettingsAction/MachineSettingsAction.qml

@@ -355,7 +355,7 @@ Cura.MachineAction
                 if(currentIndex > 0)
                 {
                     contentItem.forceActiveFocus();
-                    ExtruderManager.setActiveExtruderIndex(currentIndex - 1);
+                    Cura.ExtruderManager.setActiveExtruderIndex(currentIndex - 1);
                 }
             }
 
@@ -585,11 +585,11 @@ Cura.MachineAction
                                 propertyProvider.setPropertyValue("value", text);
                                 if(_forceUpdateOnChange)
                                 {
-                                    var extruderIndex = ExtruderManager.activeExtruderIndex;
+                                    var extruderIndex = Cura.ExtruderManager.activeExtruderIndex;
                                     manager.forceUpdate();
-                                    if(ExtruderManager.activeExtruderIndex != extruderIndex)
+                                    if(Cura.ExtruderManager.activeExtruderIndex != extruderIndex)
                                     {
-                                        ExtruderManager.setActiveExtruderIndex(extruderIndex)
+                                        Cura.ExtruderManager.setActiveExtruderIndex(extruderIndex)
                                     }
                                 }
                                 if(_afterOnEditingFinished)