mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: brute force password saving
This is embarrassing. I should have done this in the first place instead of trying to hack around it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cae180036e
commit
94a549e767
2 changed files with 5 additions and 5 deletions
|
@ -1480,7 +1480,12 @@ void loadPreferences()
|
||||||
|
|
||||||
s.beginGroup("CloudStorage");
|
s.beginGroup("CloudStorage");
|
||||||
GET_TXT("email", cloud_storage_email);
|
GET_TXT("email", cloud_storage_email);
|
||||||
|
#ifndef SUBSURFACE_MOBILE
|
||||||
GET_BOOL("save_password_local", save_password_local);
|
GET_BOOL("save_password_local", save_password_local);
|
||||||
|
#else
|
||||||
|
// always save the password in Subsurface-mobile
|
||||||
|
prefs.save_password_local = true;
|
||||||
|
#endif
|
||||||
if (prefs.save_password_local) { // GET_TEXT macro is not a single statement
|
if (prefs.save_password_local) { // GET_TEXT macro is not a single statement
|
||||||
GET_TXT("password", cloud_storage_password);
|
GET_TXT("password", cloud_storage_password);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,13 +60,8 @@ int main(int argc, char **argv)
|
||||||
parse_xml_init();
|
parse_xml_init();
|
||||||
taglist_init_global();
|
taglist_init_global();
|
||||||
init_ui();
|
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();
|
loadPreferences();
|
||||||
|
|
||||||
// some hard coded settings
|
// some hard coded settings
|
||||||
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
|
prefs.animation_speed = 0; // we render the profile to pixmap, no animations
|
||||||
|
|
||||||
// always show the divecomputer reported ceiling in red
|
// always show the divecomputer reported ceiling in red
|
||||||
|
|
Loading…
Add table
Reference in a new issue