Move setting visibility presets into a model

Handling of "Custom" is still under consideration
This commit is contained in:
fieldOfView 2018-02-08 22:57:05 +01:00
parent 872efd16b2
commit 080979caeb
5 changed files with 127 additions and 177 deletions

View file

@ -151,10 +151,6 @@ Item
}
onShowSettingVisibilityProfile:
{
var newVisibleSettings = CuraApplication.getVisibilitySettingPreset(profileName)
UM.Preferences.setValue("general/visible_settings", newVisibleSettings)
UM.Preferences.setValue("general/preset_setting_visibility_choice", profileName)
base.showingAllSettings = false;
base.findingSettings = false;
filter.text = "";