Add and use a preference for active mode and active machine

This commit is contained in:
Arjen Hiemstra 2015-04-17 11:57:59 +02:00
parent 0c156fdf42
commit e7224c8c1a
2 changed files with 23 additions and 2 deletions

View file

@ -49,6 +49,15 @@ UM.AngledCornerRectangle {
addMachineAction: base.addMachineAction;
configureMachinesAction: base.configureMachinesAction;
modesModel: modesListModel;
currentModeIndex: {
var index = parseInt(UM.Preferences.getValue('cura/active_mode'))
if(index) {
return index;
}
return 0;
}
onCurrentModeIndexChanged: UM.Preferences.setValue('cura/active_mode', currentModeIndex);
}
Loader {