mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
It's no longer possible to set materials for machines that dont support them
CURA-3042
This commit is contained in:
parent
1752c56272
commit
72112159d6
1 changed files with 5 additions and 3 deletions
|
@ -127,7 +127,7 @@ UM.ManagementPage
|
|||
{
|
||||
text: catalog.i18nc("@action:button", "Activate");
|
||||
iconName: "list-activate";
|
||||
enabled: base.currentItem != null && base.currentItem.id != Cura.MachineManager.activeMaterialId
|
||||
enabled: base.currentItem != null && base.currentItem.id != Cura.MachineManager.activeMaterialId && Cura.MachineManager.hasMaterials
|
||||
onClicked: Cura.MachineManager.setActiveMaterial(base.currentItem.id)
|
||||
},
|
||||
Button
|
||||
|
@ -144,8 +144,10 @@ UM.ManagementPage
|
|||
{
|
||||
return
|
||||
}
|
||||
|
||||
Cura.MachineManager.setActiveMaterial(material_id)
|
||||
if(Cura.MachineManager.hasMaterials)
|
||||
{
|
||||
Cura.MachineManager.setActiveMaterial(material_id)
|
||||
}
|
||||
}
|
||||
},
|
||||
Button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue