From dbab3c6e8b0b6d3617c6d1a9cad801dcc655d44b Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Wed, 15 Jan 2020 11:50:59 +0100 Subject: [PATCH] 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 --- resources/qml/Actions.qml | 9 +++++++++ resources/qml/Menus/MaterialMenu.qml | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/resources/qml/Actions.qml b/resources/qml/Actions.qml index e5b39c6ba5..3c978df115 100644 --- a/resources/qml/Actions.qml +++ b/resources/qml/Actions.qml @@ -54,6 +54,7 @@ Item property alias manageProfiles: manageProfilesAction; property alias manageMaterials: manageMaterialsAction; + property alias marketplaceMaterials: marketplaceMaterialsAction; property alias preferences: preferencesAction; @@ -188,6 +189,14 @@ Item 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 { id: updateProfileAction; diff --git a/resources/qml/Menus/MaterialMenu.qml b/resources/qml/Menus/MaterialMenu.qml index c101f56da5..b733ead40b 100644 --- a/resources/qml/Menus/MaterialMenu.qml +++ b/resources/qml/Menus/MaterialMenu.qml @@ -157,4 +157,11 @@ Menu { action: Cura.Actions.manageMaterials } + + MenuSeparator {} + + MenuItem + { + action: Cura.Actions.marketplaceMaterials + } }