mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Prevent changing material / variant of disabled extruder
It is disabled, so changing it's material / variant doesn't make that much sense... CURA-6872
This commit is contained in:
parent
ec4817db87
commit
07a20e131a
3 changed files with 8 additions and 2 deletions
|
@ -221,6 +221,7 @@ Item
|
|||
|
||||
OldControls.CheckBox
|
||||
{
|
||||
id: enabledCheckbox
|
||||
checked: Cura.MachineManager.activeStack != null ? Cura.MachineManager.activeStack.isEnabled : false
|
||||
enabled: !checked || Cura.MachineManager.numberExtrudersEnabled > 1 //Disable if it's the last enabled extruder.
|
||||
height: parent.height
|
||||
|
@ -265,6 +266,7 @@ Item
|
|||
|
||||
text: Cura.MachineManager.activeStack !== null ? Cura.MachineManager.activeStack.material.name : ""
|
||||
tooltip: text
|
||||
enabled: enabledCheckbox.checked
|
||||
|
||||
width: selectors.controlWidth
|
||||
height: parent.height
|
||||
|
@ -324,7 +326,8 @@ Item
|
|||
height: parent.height
|
||||
width: selectors.controlWidth
|
||||
style: UM.Theme.styles.print_setup_header_button
|
||||
activeFocusOnPress: true;
|
||||
activeFocusOnPress: true
|
||||
enabled: enabledCheckbox.checked
|
||||
|
||||
menu: Cura.NozzleMenu { extruderIndex: Cura.ExtruderManager.activeExtruderIndex }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue