mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:36:01 +08:00
Introduce a "Manage Materials" action
Contributes to CURA-342
This commit is contained in:
parent
842015ea10
commit
1a56da464c
@ -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…
x
Reference in New Issue
Block a user