mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ Item
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:button", "Activate")
|
text: catalog.i18nc("@action:button", "Activate")
|
||||||
iconName: "list-activate"
|
iconName: "list-activate"
|
||||||
enabled: !isCurrentItemActivated
|
enabled: !isCurrentItemActivated && Cura.MachineManager.hasMaterials()
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
forceActiveFocus()
|
forceActiveFocus()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue