mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:19:15 +08: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
@ -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…
x
Reference in New Issue
Block a user