mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
Add and use a preference for active mode and active machine
This commit is contained in:
parent
0c156fdf42
commit
e7224c8c1a
2 changed files with 23 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue