mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:38:59 +08:00
Implement a proper machine model and use it
This commit is contained in:
parent
dadeb87801
commit
bb9db205fc
@ -53,7 +53,9 @@ UM.MainWindow {
|
|||||||
MenuItem {
|
MenuItem {
|
||||||
text: model.name;
|
text: model.name;
|
||||||
checkable: true;
|
checkable: true;
|
||||||
|
checked: model.active;
|
||||||
exclusiveGroup: machineMenuGroup;
|
exclusiveGroup: machineMenuGroup;
|
||||||
|
onTriggered: UM.Models.machinesModel.setActive(index)
|
||||||
}
|
}
|
||||||
onObjectAdded: machineMenu.insertItem(index, object)
|
onObjectAdded: machineMenu.insertItem(index, object)
|
||||||
onObjectRemoved: machineMenu.removeItem(object)
|
onObjectRemoved: machineMenu.removeItem(object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user