mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Implement a proper machine model and use it
This commit is contained in:
parent
dadeb87801
commit
bb9db205fc
1 changed files with 2 additions and 0 deletions
|
@ -53,7 +53,9 @@ UM.MainWindow {
|
|||
MenuItem {
|
||||
text: model.name;
|
||||
checkable: true;
|
||||
checked: model.active;
|
||||
exclusiveGroup: machineMenuGroup;
|
||||
onTriggered: UM.Models.machinesModel.setActive(index)
|
||||
}
|
||||
onObjectAdded: machineMenu.insertItem(index, object)
|
||||
onObjectRemoved: machineMenu.removeItem(object)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue