Convert the last bits over to the changed API

This commit is contained in:
Arjen Hiemstra 2015-08-11 17:02:17 +02:00
parent f60dc01e66
commit 09cfda095b
6 changed files with 28 additions and 26 deletions

View file

@ -119,13 +119,13 @@ UM.MainWindow {
title: qsTr("&Machine");
Instantiator {
model: UM.Models.machinesModel
model: UM.MachineInstancesModel { }
MenuItem {
text: model.name;
checkable: true;
checked: model.active;
exclusiveGroup: machineMenuGroup;
onTriggered: UM.Models.machinesModel.setActive(index)
onTriggered: UM.MachineManager.setActiveMachineInstance(model.name)
}
onObjectAdded: machineMenu.insertItem(index, object)
onObjectRemoved: machineMenu.removeItem(object)