mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
QML UI: really force passwords to be saved
The logic looked so easy, but the preference needs to be hard coded twice because there are two scenarios: - new install, make sure we load the password from settings (so it needs to be hard coded BEFORE we load preferences) - update where previously for some reason the user stored that they didn't want to store the password, so we need to also hard code it after the settings were loaded Looks odd, but that should do the trick. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5e8930a179
commit
cae180036e
1 changed files with 5 additions and 2 deletions
|
@ -60,11 +60,14 @@ int main(int argc, char **argv)
|
|||
parse_xml_init();
|
||||
taglist_init_global();
|
||||
init_ui();
|
||||
// load the preferences and make sure to load the password
|
||||
// the mobile UI makes no sense without that
|
||||
prefs.save_password_local = true;
|
||||
loadPreferences();
|
||||
|
||||
// some hard coded settings
|
||||
prefs.save_password_local = true; // the mobile UI makes no sense without that
|
||||
prefs.animation_speed = 0;
|
||||
prefs.save_password_local = true; // in case somehow the loaded prefs reset that
|
||||
prefs.animation_speed = 0; // we render the profile to pixmap, no animations
|
||||
|
||||
// always show the divecomputer reported ceiling in red
|
||||
prefs.dcceiling = 1;
|
||||
|
|
Loading…
Reference in a new issue