mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07: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
|
|
@ -50,6 +50,7 @@ Menu
|
|||
{
|
||||
text: model.brand + " " + model.name
|
||||
checkable: true
|
||||
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||
checked: model.root_material_id === menu.currentRootMaterialId
|
||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||
exclusiveGroup: favoriteGroup // One favorite and one item from the others can be active at the same time.
|
||||
|
|
@ -72,6 +73,7 @@ Menu
|
|||
{
|
||||
text: model.name
|
||||
checkable: true
|
||||
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||
checked: model.root_material_id === menu.currentRootMaterialId
|
||||
exclusiveGroup: group
|
||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||
|
|
@ -110,6 +112,7 @@ Menu
|
|||
{
|
||||
text: model.name
|
||||
checkable: true
|
||||
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||
checked: model.id === menu.activeMaterialId
|
||||
exclusiveGroup: group
|
||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue