mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: do not clear email and passwd when cancelling
Commit cf8e87545f
implemented a way to cancel pin setup,
and this also has effects on an exit from the app after pressing
the android exit. The change button started with clearing the
email and passwd in order to get the credentail page(s) active
again. While this worked ok, it confuses users that exit the
app from the credential pages, resulting in the need to enter
the credentials again after a restart. It appears that clearing
the credential state is sufficient to get the pages active.
Notice that the android exit is still not working (it seems
a no-op), but the interaction with the buttons in the app
preserves the email/passwd.
Reported-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
f4165a9eea
commit
fb42213111
1 changed files with 8 additions and 6 deletions
|
@ -228,16 +228,18 @@ void QMLManager::cancelCredentialsPinSetup()
|
|||
* The user selected <cancel> on the final stage of the
|
||||
* cloud account generation (entering the emailed PIN).
|
||||
*
|
||||
* For now, just reset all the cloud data. This brings the app
|
||||
* back to its initial state, and the user can startover again.
|
||||
* Resets the cloud credential status to CS_UNKNOWN, resulting
|
||||
* in a return to the first crededentials page, with the
|
||||
* email and passwd still filled in. In case of a cancel
|
||||
* of registration (from the PIN page), the email address
|
||||
* was probably misspelled, so the user never received a PIN to
|
||||
* complete the process.
|
||||
*
|
||||
* Notice that this function is also used to switch to NOCLOUD
|
||||
* mode. So the name is not perfect.
|
||||
* Notice that this function is also used to switch to a different
|
||||
* cloud account, so the name is not perfect.
|
||||
*/
|
||||
QSettings s;
|
||||
|
||||
setCloudUserName(NULL);
|
||||
setCloudPassword(NULL);
|
||||
setCredentialStatus(CS_UNKNOWN);
|
||||
s.beginGroup("CloudStorage");
|
||||
s.setValue("email", cloudUserName());
|
||||
|
|
Loading…
Add table
Reference in a new issue