mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
1 changed files with 1 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue