mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 15:28:56 -07:00
Fix triggering actions from the extensions menu
Contributes to CURA-1540, CURA-1278
This commit is contained in:
parent
f5fce51238
commit
6aa00a951f
1 changed files with 2 additions and 1 deletions
|
|
@ -305,6 +305,7 @@ UM.MainWindow
|
||||||
|
|
||||||
Instantiator
|
Instantiator
|
||||||
{
|
{
|
||||||
|
id: extenions
|
||||||
model: UM.ExtensionModel { }
|
model: UM.ExtensionModel { }
|
||||||
|
|
||||||
Menu
|
Menu
|
||||||
|
|
@ -319,7 +320,7 @@ UM.MainWindow
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
text: model.text
|
text: model.text
|
||||||
onTriggered: UM.Models.extensionModel.subMenuTriggered(name, model.text)
|
onTriggered: extenions.model.subMenuTriggered(name, model.text)
|
||||||
}
|
}
|
||||||
onObjectAdded: sub_menu.insertItem(index, object)
|
onObjectAdded: sub_menu.insertItem(index, object)
|
||||||
onObjectRemoved: sub_menu.removeItem(object)
|
onObjectRemoved: sub_menu.removeItem(object)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue