Allow switching back to the "Custom" set

This commit is contained in:
fieldOfView 2018-03-09 16:30:37 +01:00
parent 4c66c935af
commit 711d60e8c7
3 changed files with 30 additions and 4 deletions

View file

@ -164,6 +164,11 @@ UM.PreferencesPage
UM.Preferences.setValue("general/visible_settings", Cura.SettingVisibilityPresetsModel.getItem(index - 1).settings.join(";"));
// "Custom selection" entry is added in front, so index is off by 1
}
else
{
// Restore custom set from preference
UM.Preferences.setValue("general/visible_settings", UM.Preferences.getValue("cura/custom_visible_settings"));
}
base.inhibitSwitchToCustom = false;
}
}