mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -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
|
|
@ -14,6 +14,8 @@ Item{
|
|||
property int totalHeightProfileSetup: childrenRect.height
|
||||
property Action manageProfilesAction
|
||||
property Action addProfileAction
|
||||
property Action updateProfileAction
|
||||
property Action resetProfileAction
|
||||
|
||||
signal showTooltip(Item item, point location, string text)
|
||||
signal hideTooltip()
|
||||
|
|
@ -67,7 +69,7 @@ Item{
|
|||
//Insert a separator between readonly and custom profiles
|
||||
if(separatorIndex < 0 && index > 0) {
|
||||
if(model.getItem(index-1).readOnly != model.getItem(index).readOnly) {
|
||||
profileSelectionMenu.addSeparator();
|
||||
profileSelectionMenu.insertSeparator(index);
|
||||
separatorIndex = index;
|
||||
}
|
||||
}
|
||||
|
|
@ -113,9 +115,16 @@ Item{
|
|||
}
|
||||
|
||||
MenuSeparator { }
|
||||
MenuItem {
|
||||
action: base.updateProfileAction;
|
||||
}
|
||||
MenuItem {
|
||||
action: base.resetProfileAction;
|
||||
}
|
||||
MenuItem {
|
||||
action: base.addProfileAction;
|
||||
}
|
||||
MenuSeparator { }
|
||||
MenuItem {
|
||||
action: base.manageProfilesAction;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue