mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Properly add and remove menu items
Not really part of the ticket but logging was complaining CURA-9146
This commit is contained in:
parent
7a3af720a8
commit
9a3d089bd9
1 changed files with 2 additions and 2 deletions
|
@ -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); }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue