mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:28:58 +08:00
Set Custom in visible setting preset
CURA-3710
This commit is contained in:
parent
1a44ad48a3
commit
f655b0e033
@ -179,8 +179,10 @@ UM.PreferencesPage
|
|||||||
onActivated:
|
onActivated:
|
||||||
{
|
{
|
||||||
// TODO What to do if user is selected "Custom from Combobox" ?
|
// 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
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var newVisibleSettings = CuraApplication.getVisibilitySettingPreset(model.get(index).text)
|
var newVisibleSettings = CuraApplication.getVisibilitySettingPreset(model.get(index).text)
|
||||||
UM.Preferences.setValue("general/visible_settings", newVisibleSettings)
|
UM.Preferences.setValue("general/visible_settings", newVisibleSettings)
|
||||||
@ -267,7 +269,6 @@ UM.PreferencesPage
|
|||||||
{
|
{
|
||||||
visibilityPreset.currentIndex = visibilityPreset.model.count - 1
|
visibilityPreset.currentIndex = visibilityPreset.model.count - 1
|
||||||
UM.Preferences.setValue("general/preset_setting_visibility_choice", visibilityPreset.model.get(visibilityPreset.currentIndex).text)
|
UM.Preferences.setValue("general/preset_setting_visibility_choice", visibilityPreset.model.get(visibilityPreset.currentIndex).text)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user