Properly add and remove menu items

Not really part of the ticket but logging was complaining

CURA-9146
This commit is contained in:
c.lamboo 2022-04-21 11:34:16 +02:00
parent 7a3af720a8
commit 9a3d089bd9

View file

@ -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); }
}
}