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");
|
||||
GET_TXT("email", cloud_storage_email);
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
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
|
||||
GET_TXT("password", cloud_storage_password);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue