mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:49:03 +08:00
Do not allow the user to activate a material if the printer is not
defined to have materials. Contributes to #4550.
This commit is contained in:
parent
f10bd28c4a
commit
df38e7db85
@ -83,7 +83,7 @@ Item
|
||||
{
|
||||
text: catalog.i18nc("@action:button", "Activate")
|
||||
iconName: "list-activate"
|
||||
enabled: !isCurrentItemActivated
|
||||
enabled: !isCurrentItemActivated && Cura.MachineManager.hasMaterials()
|
||||
onClicked:
|
||||
{
|
||||
forceActiveFocus()
|
||||
|
Loading…
x
Reference in New Issue
Block a user