Browse Source

Set Custom in visible setting preset
CURA-3710

Aleksei S 7 years ago
parent
commit
f655b0e033
1 changed files with 3 additions and 2 deletions
  1. 3 2
      resources/qml/Preferences/SettingVisibilityPage.qml

+ 3 - 2
resources/qml/Preferences/SettingVisibilityPage.qml

@@ -179,8 +179,10 @@ UM.PreferencesPage
             onActivated:
             {
                 // TODO What to do if user is selected "Custom from Combobox" ?
-                if (model.get(index).text == "Custom")
+                if (model.get(index).text == "Custom"){
+                    UM.Preferences.setValue("general/preset_setting_visibility_choice", model.get(index).text)
                     return
+                }
 
                 var newVisibleSettings = CuraApplication.getVisibilitySettingPreset(model.get(index).text)
                 UM.Preferences.setValue("general/visible_settings", newVisibleSettings)
@@ -267,7 +269,6 @@ UM.PreferencesPage
                     {
                         visibilityPreset.currentIndex = visibilityPreset.model.count - 1
                         UM.Preferences.setValue("general/preset_setting_visibility_choice", visibilityPreset.model.get(visibilityPreset.currentIndex).text)
-
                     }
                 }
             }