mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
Ensure that reset always correctly gets set to basic
The old code that simply resetted the preferences was still active, but this could cause a race condition in some situations. In those cases it would first set it to basic and then clear the preferences (thus resulting in no settings being visible) CURA-5981
This commit is contained in:
parent
9ec7428620
commit
b2238420fb
@ -25,11 +25,7 @@ UM.PreferencesPage
|
|||||||
|
|
||||||
function reset()
|
function reset()
|
||||||
{
|
{
|
||||||
UM.Preferences.resetPreference("general/visible_settings")
|
settingVisibilityPresetsModel.setActivePreset("basic")
|
||||||
|
|
||||||
// After calling this function update Setting visibility preset combobox.
|
|
||||||
// Reset should set default setting preset ("Basic")
|
|
||||||
visibilityPreset.currentIndex = 1
|
|
||||||
}
|
}
|
||||||
resetEnabled: true;
|
resetEnabled: true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user