mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:18:59 +08:00
Fix opening of marketplace button
CURA-8684
This commit is contained in:
parent
38e20fd90b
commit
bab9311284
@ -40,7 +40,7 @@ Item
|
|||||||
title: (Qt.platform.os == "osx") ? "&Settings" : catalog.i18nc("@title:menu menubar:toplevel", "&Settings")
|
title: (Qt.platform.os == "osx") ? "&Settings" : catalog.i18nc("@title:menu menubar:toplevel", "&Settings")
|
||||||
}
|
}
|
||||||
|
|
||||||
ExtensionMenu {}
|
ExtensionMenu { id: extensionMenu }
|
||||||
|
|
||||||
PreferencesMenu {}
|
PreferencesMenu {}
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ Item
|
|||||||
target: Cura.Actions.browsePackages
|
target: Cura.Actions.browsePackages
|
||||||
function onTriggered()
|
function onTriggered()
|
||||||
{
|
{
|
||||||
curaExtensions.callExtensionMethod("Toolbox", "launch")
|
extensionMenu.extensionModel.callExtensionMethod("Toolbox", "launch")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,8 +109,8 @@ Item
|
|||||||
target: Cura.Actions.marketplaceMaterials
|
target: Cura.Actions.marketplaceMaterials
|
||||||
function onTriggered()
|
function onTriggered()
|
||||||
{
|
{
|
||||||
curaExtensions.callExtensionMethod("Toolbox", "launch")
|
extensionMenu.extensionModel.callExtensionMethod("Toolbox", "launch")
|
||||||
curaExtensions.callExtensionMethod("Toolbox", "setViewCategoryToMaterials")
|
extensionMenu.extensionModel.callExtensionMethod("Toolbox", "setViewCategoryToMaterials")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,7 +11,7 @@ Menu
|
|||||||
{
|
{
|
||||||
id: extensionMenu
|
id: extensionMenu
|
||||||
title: catalog.i18nc("@title:menu menubar:toplevel", "E&xtensions")
|
title: catalog.i18nc("@title:menu menubar:toplevel", "E&xtensions")
|
||||||
|
property var extensionModel: UM.ExtensionModel { }
|
||||||
Component
|
Component
|
||||||
{
|
{
|
||||||
id: extensionsMenuItem
|
id: extensionsMenuItem
|
||||||
@ -33,7 +33,7 @@ Menu
|
|||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
id: extensions
|
id: extensions
|
||||||
model: UM.ExtensionModel { }
|
model: extensionModel
|
||||||
|
|
||||||
UM.Menu
|
UM.Menu
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user