mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 20:31:35 -07:00
Introduce a "Manage Materials" action
Contributes to CURA-342
This commit is contained in:
parent
842015ea10
commit
1a56da464c
2 changed files with 19 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ Item
|
||||||
property alias resetProfile: resetProfileAction;
|
property alias resetProfile: resetProfileAction;
|
||||||
property alias manageProfiles: manageProfilesAction;
|
property alias manageProfiles: manageProfilesAction;
|
||||||
|
|
||||||
|
property alias manageMaterials: manageMaterialsAction;
|
||||||
|
|
||||||
property alias preferences: preferencesAction;
|
property alias preferences: preferencesAction;
|
||||||
|
|
||||||
property alias showEngineLog: showEngineLogAction;
|
property alias showEngineLog: showEngineLogAction;
|
||||||
|
|
@ -107,6 +109,13 @@ Item
|
||||||
iconName: "configure";
|
iconName: "configure";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Action
|
||||||
|
{
|
||||||
|
id: manageMaterialsAction
|
||||||
|
text: catalog.i18nc("@action:inmenu", "Manage Materials...")
|
||||||
|
iconName: "configure"
|
||||||
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: updateProfileAction;
|
id: updateProfileAction;
|
||||||
|
|
|
||||||
|
|
@ -582,6 +582,16 @@ UM.MainWindow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
target: Cura.Actions.manageMaterials
|
||||||
|
onTriggered:
|
||||||
|
{
|
||||||
|
preferences.visible = true;
|
||||||
|
preferences.setPage(3)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: Cura.Actions.configureSettingVisibility
|
target: Cura.Actions.configureSettingVisibility
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue