mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix marketplace opening
This commit is contained in:
parent
c356d37e06
commit
26262e3cac
2 changed files with 4 additions and 11 deletions
|
|
@ -71,7 +71,6 @@ 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,11 +482,4 @@ Item
|
||||||
text: "&Marketplace"
|
text: "&Marketplace"
|
||||||
icon.name: "plugins_browse"
|
icon.name: "plugins_browse"
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
|
||||||
{
|
|
||||||
id: openMarketplaceAction
|
|
||||||
text: catalog.i18nc("@action:menu", "&Marketplace")
|
|
||||||
icon.name: "plugins_browse"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,8 @@ Item
|
||||||
target: Cura.Actions.browsePackages
|
target: Cura.Actions.browsePackages
|
||||||
function onTriggered()
|
function onTriggered()
|
||||||
{
|
{
|
||||||
extensionMenu.extensionModel.callExtensionMethod("Toolbox", "launch")
|
print("beepboop")
|
||||||
|
extensionMenu.extensionModel.callExtensionMethod("Marketplace", "show")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -107,8 +108,8 @@ Item
|
||||||
target: Cura.Actions.marketplaceMaterials
|
target: Cura.Actions.marketplaceMaterials
|
||||||
function onTriggered()
|
function onTriggered()
|
||||||
{
|
{
|
||||||
extensionMenu.extensionModel.callExtensionMethod("Toolbox", "launch")
|
extensionMenu.extensionModel.callExtensionMethod("Marketplace", "show")
|
||||||
extensionMenu.extensionModel.callExtensionMethod("Toolbox", "setViewCategoryToMaterials")
|
extensionMenu.extensionModel.callExtensionMethod("Marketplace", "setVisibleTabToMaterials")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue