Added isValidGlobalStack property to MachineManager

CURA-1585
This commit is contained in:
Jaime van Kessel 2016-06-03 10:29:19 +02:00
parent 171adde6be
commit 113da81db5
2 changed files with 18 additions and 2 deletions

View file

@ -110,7 +110,7 @@ Item
Action
{
id: updateProfileAction;
enabled: UM.ActiveProfile.valid && !UM.ActiveProfile.readOnly && UM.ActiveProfile.hasCustomisedValues
enabled: Cura.MachineManager.isGlobalStackValid && !UM.ActiveProfile.readOnly && Cura.MachineManager.hasUserSettings
text: catalog.i18nc("@action:inmenu menubar:profile","&Update Current Profile");
onTriggered: UM.ActiveProfile.updateProfile();
}
@ -126,7 +126,7 @@ Item
Action
{
id: addProfileAction;
enabled: UM.ActiveProfile.valid
enabled: Cura.MachineManager.isGlobalStackValid
text: catalog.i18nc("@action:inmenu menubar:profile","&Create New Profile...");
}