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:
Jaime van Kessel 2018-12-04 15:46:13 +01:00
parent 9ec7428620
commit b2238420fb

View File

@ -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;