Select first extruder when switching to a printer (continued)

The days of the global tab are numbered

CURA-1758
This commit is contained in:
fieldOfView 2016-07-18 16:19:37 +02:00
parent 8a6f41d7e7
commit a31ffc4ebf

View file

@ -91,8 +91,8 @@ Column
target: Cura.MachineManager
onGlobalContainerChanged:
{
base.currentExtruderIndex = -1;
forceActiveFocus()
forceActiveFocus() // Changing focus applies the currently-being-typed values so it can change the displayed setting values.
base.currentExtruderIndex = (machineExtruderCount.properties.value == 1) ? -1 : 0;
ExtruderManager.setActiveExtruderIndex(base.currentExtruderIndex);
}
}
@ -110,7 +110,7 @@ Column
onClicked:
{
forceActiveFocus() //Changing focus applies the currently-being-typed values so it can change the displayed setting values.
forceActiveFocus() // Changing focus applies the currently-being-typed values so it can change the displayed setting values.
base.currentExtruderIndex = index;
ExtruderManager.setActiveExtruderIndex(index);
}