Refactor code

CURA-3710
This commit is contained in:
Lipu Fei 2018-02-01 13:56:49 +01:00
parent 1801f1f27c
commit 367e50669d
7 changed files with 21 additions and 21 deletions

View file

@ -154,7 +154,7 @@ UM.PreferencesPage
currentIndex:
{
// Load previously selected preset.
var text = UM.Preferences.getValue("general/visible_settings_preset_choice");
var text = UM.Preferences.getValue("general/preset_setting_visibility_choice");
@ -178,7 +178,7 @@ UM.PreferencesPage
var newVisibleSettings = CuraApplication.getVisibilitySettingPreset(model.get(index).text)
UM.Preferences.setValue("general/visible_settings", newVisibleSettings)
UM.Preferences.setValue("general/visible_settings_preset_choice", model.get(index).text)
UM.Preferences.setValue("general/preset_setting_visibility_choice", model.get(index).text)
}
}