diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-04-21 12:34:16 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-04-21 12:34:16 +0300 |
commit | 9a3d089bd90ec11bf8ce649797d2fd4583a5f631 (patch) | |
tree | cf313b4b4438fd028c81844e6f884b05f29362f6 /resources/qml | |
parent | 7a3af720a84268a5244e8322dc77a67de97f60d7 (diff) |
Properly add and remove menu items
Not really part of the ticket but logging was complaining
CURA-9146
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/Menus/PrinterTypeMenu.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/Menus/PrinterTypeMenu.qml b/resources/qml/Menus/PrinterTypeMenu.qml index 17986ac1b8..1447113208 100644 --- a/resources/qml/Menus/PrinterTypeMenu.qml +++ b/resources/qml/Menus/PrinterTypeMenu.qml @@ -28,7 +28,7 @@ Cura.Menu Cura.MachineManager.switchPrinterType(modelData.machine_type) } } - onObjectAdded: menu.insertItem(index, object) - onObjectRemoved: menu.removeItem(object) + onObjectAdded: function(index, object) { return menu.insertItem(index, object); } + onObjectRemoved: function(object) { return menu.removeItem(object); } } } |