mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
No longer inject parameters into function handling in qml
This commit is contained in:
parent
1df9ca55c8
commit
af712785c8
12 changed files with 36 additions and 39 deletions
|
@ -38,8 +38,8 @@ Cura.Menu
|
|||
checked: Cura.MachineManager.activeMachineNetworkGroupName == connectGroupName
|
||||
onTriggered: Cura.MachineManager.setActiveMachine(model.id)
|
||||
}
|
||||
onObjectAdded: menu.insertItem(2, object)
|
||||
onObjectRemoved: menu.removeItem(object)
|
||||
onObjectAdded: function(index, object) { menu.insertItem(2, object)}
|
||||
onObjectRemoved: function(object) { menu.removeItem(object)}
|
||||
}
|
||||
|
||||
Cura.MenuSeparator { visible: networKPrinterInstantiator.count > 0 }
|
||||
|
@ -66,8 +66,8 @@ Cura.Menu
|
|||
onTriggered: Cura.MachineManager.setActiveMachine(model.id)
|
||||
}
|
||||
// A bit hackish, but we have 2 items at the end, put them before that
|
||||
onObjectAdded: menu.insertItem(menu.count - 2, object)
|
||||
onObjectRemoved: menu.removeItem(object)
|
||||
onObjectAdded: function(index, object) { menu.insertItem(menu.count - 2, object) }
|
||||
onObjectRemoved: function(object) { menu.removeItem(object) }
|
||||
}
|
||||
|
||||
Cura.MenuSeparator { visible: localPrinterInstantiator.count > 0 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue