mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:55:59 +08: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
@ -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…
x
Reference in New Issue
Block a user