Fix selecting presets from menu

Switching back to Custom is not yet implemented, and the menu selection does not yet change if the preset is changed in the preferences
This commit is contained in:
fieldOfView 2018-02-08 17:13:59 +01:00
parent 69d7bf4130
commit 872efd16b2
2 changed files with 53 additions and 8 deletions

View file

@ -151,6 +151,10 @@ 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 = "";
@ -243,7 +247,10 @@ Item
}
else
{
definitionsModel.expanded = expandedCategories;
if(expandedCategories)
{
definitionsModel.expanded = expandedCategories;
}
definitionsModel.showAncestors = false;
definitionsModel.showAll = false;
}