mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:09:01 +08:00
Don't break the currentExtruderIndex binding
CURA-2177
This commit is contained in:
parent
f1ee6b2b15
commit
35fedbdad6
@ -92,8 +92,8 @@ Column
|
|||||||
onGlobalContainerChanged:
|
onGlobalContainerChanged:
|
||||||
{
|
{
|
||||||
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 = (machineExtruderCount.properties.value == 1) ? -1 : 0;
|
var extruder_index = (machineExtruderCount.properties.value == 1) ? -1 : 0
|
||||||
ExtruderManager.setActiveExtruderIndex(base.currentExtruderIndex);
|
ExtruderManager.setActiveExtruderIndex(extruder_index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,13 +105,11 @@ Column
|
|||||||
text: model.name
|
text: model.name
|
||||||
tooltip: model.name
|
tooltip: model.name
|
||||||
exclusiveGroup: extruderMenuGroup
|
exclusiveGroup: extruderMenuGroup
|
||||||
checkable: true
|
|
||||||
checked: base.currentExtruderIndex == index
|
checked: base.currentExtruderIndex == index
|
||||||
|
|
||||||
onClicked:
|
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);
|
ExtruderManager.setActiveExtruderIndex(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user