mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
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:
parent
7796abd55b
commit
aed52cea74
3 changed files with 17 additions and 1 deletions
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: Cura.Actions.browsePackages.trigger()
|
onClicked: Cura.Actions.openMarketplace.trigger()
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplicationSwitcher
|
ApplicationSwitcher
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue