mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 22:01:14 -07:00
Add "Update Current Profile" and "Reset Current Profile" menu items to profile dropdowns
CURA-970
This commit is contained in:
parent
d7aa8e71bf
commit
f6ce963b73
4 changed files with 42 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ Item
|
|||
property alias unGroupObjects:unGroupObjectsAction;
|
||||
property alias mergeObjects: mergeObjectsAction;
|
||||
//property alias unMergeObjects: unMergeObjectsAction;
|
||||
|
||||
|
||||
property alias multiplyObject: multiplyObjectAction;
|
||||
|
||||
property alias deleteAll: deleteAllAction;
|
||||
|
|
@ -32,6 +32,8 @@ Item
|
|||
property alias addMachine: addMachineAction;
|
||||
property alias configureMachines: settingsAction;
|
||||
property alias addProfile: addProfileAction;
|
||||
property alias updateProfile: updateProfileAction;
|
||||
property alias resetProfile: resetProfileAction;
|
||||
property alias manageProfiles: manageProfilesAction;
|
||||
|
||||
property alias preferences: preferencesAction;
|
||||
|
|
@ -96,11 +98,25 @@ Item
|
|||
iconName: "configure";
|
||||
}
|
||||
|
||||
Action
|
||||
{
|
||||
id: updateProfileAction;
|
||||
enabled: UM.ActiveProfile.valid && !UM.ActiveProfile.readOnly && UM.ActiveProfile.hasCustomisedValues
|
||||
text: catalog.i18nc("@action:inmenu menubar:profile","&Update Current Profile");
|
||||
}
|
||||
|
||||
Action
|
||||
{
|
||||
id: resetProfileAction;
|
||||
enabled: UM.ActiveProfile.valid && !UM.ActiveProfile.readOnly && UM.ActiveProfile.hasCustomisedValues
|
||||
text: catalog.i18nc("@action:inmenu menubar:profile","&Reset Current Profile");
|
||||
}
|
||||
|
||||
Action
|
||||
{
|
||||
id: addProfileAction;
|
||||
enabled: UM.ActiveProfile.valid
|
||||
text: catalog.i18nc("@action:inmenu menubar:profile","&Add Profile...");
|
||||
text: catalog.i18nc("@action:inmenu menubar:profile","&Create New Profile...");
|
||||
}
|
||||
|
||||
Action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue