mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 11:29:01 +08:00
Add more materials from Marketplace menu button
This commit adds a button "Add more materials from Marketplace" in the menu that pops up in the material list while configuring the materials into custom ones. The button redirects the user to the Marketplace materials page (https://marketplace.ultimaker.com/app/cura/materials) CURA-7027
This commit is contained in:
parent
9f023eb28e
commit
dbab3c6e8b
@ -54,6 +54,7 @@ Item
|
|||||||
property alias manageProfiles: manageProfilesAction;
|
property alias manageProfiles: manageProfilesAction;
|
||||||
|
|
||||||
property alias manageMaterials: manageMaterialsAction;
|
property alias manageMaterials: manageMaterialsAction;
|
||||||
|
property alias marketplaceMaterials: marketplaceMaterialsAction;
|
||||||
|
|
||||||
property alias preferences: preferencesAction;
|
property alias preferences: preferencesAction;
|
||||||
|
|
||||||
@ -188,6 +189,14 @@ Item
|
|||||||
shortcut: "Ctrl+K"
|
shortcut: "Ctrl+K"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Action
|
||||||
|
{
|
||||||
|
id: marketplaceMaterialsAction
|
||||||
|
onTriggered: Qt.openUrlExternally("https://marketplace.ultimaker.com/app/cura/materials")
|
||||||
|
iconName: "configure"
|
||||||
|
text: catalog.i18nc("@action:inmenu", "Add more materials from Marketplace")
|
||||||
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: updateProfileAction;
|
id: updateProfileAction;
|
||||||
|
@ -157,4 +157,11 @@ Menu
|
|||||||
{
|
{
|
||||||
action: Cura.Actions.manageMaterials
|
action: Cura.Actions.manageMaterials
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuSeparator {}
|
||||||
|
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
action: Cura.Actions.marketplaceMaterials
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user