mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 06:11:09 -07:00
Select first extruder when switching to a printer (continued)
The days of the global tab are numbered CURA-1758
This commit is contained in:
parent
8a6f41d7e7
commit
a31ffc4ebf
1 changed files with 3 additions and 3 deletions
|
|
@ -91,8 +91,8 @@ Column
|
||||||
target: Cura.MachineManager
|
target: Cura.MachineManager
|
||||||
onGlobalContainerChanged:
|
onGlobalContainerChanged:
|
||||||
{
|
{
|
||||||
base.currentExtruderIndex = -1;
|
forceActiveFocus() // Changing focus applies the currently-being-typed values so it can change the displayed setting values.
|
||||||
forceActiveFocus()
|
base.currentExtruderIndex = (machineExtruderCount.properties.value == 1) ? -1 : 0;
|
||||||
ExtruderManager.setActiveExtruderIndex(base.currentExtruderIndex);
|
ExtruderManager.setActiveExtruderIndex(base.currentExtruderIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue