Split functionality of the two marketplace buttons

One now opens the old one again. One still opens the new one (but with a new name).

Contributes to issue CURA-8556.
This commit is contained in:
Ghostkeeper 2021-10-25 01:11:26 +02:00
parent 7796abd55b
commit aed52cea74
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
3 changed files with 17 additions and 1 deletions

View file

@ -72,6 +72,7 @@ Item
property alias configureSettingVisibility: configureSettingVisibilityAction property alias configureSettingVisibility: configureSettingVisibilityAction
property alias browsePackages: browsePackagesAction property alias browsePackages: browsePackagesAction
property alias openMarketplace: openMarketplaceAction
UM.I18nCatalog{id: catalog; name: "cura"} UM.I18nCatalog{id: catalog; name: "cura"}
@ -483,4 +484,11 @@ Item
text: catalog.i18nc("@action:menu", "&Marketplace") text: catalog.i18nc("@action:menu", "&Marketplace")
iconName: "plugins_browse" iconName: "plugins_browse"
} }
Action
{
id: openMarketplaceAction
text: catalog.i18nc("@action:menu", "&Marketplace")
iconName: "plugins_browse"
}
} }

View file

@ -201,6 +201,14 @@ Item
{ {
target: Cura.Actions.browsePackages target: Cura.Actions.browsePackages
function onTriggered() function onTriggered()
{
curaExtensions.callExtensionMethod("Toolbox", "launch")
}
}
Connections
{
target: Cura.Actions.openMarketplace
function onTriggered()
{ {
curaExtensions.callExtensionMethod("Marketplace", "show") curaExtensions.callExtensionMethod("Marketplace", "show")
} }

View file

@ -177,7 +177,7 @@ Item
} }
} }
onClicked: Cura.Actions.browsePackages.trigger() onClicked: Cura.Actions.openMarketplace.trigger()
} }
ApplicationSwitcher ApplicationSwitcher