mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Give the user more information on cloud credentials
This gives the user a bit more information about the progress of setting the cloud credentials. IMO, especially the information that the credentials are invalid is crucial for the user experience. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
de46f2b37c
commit
9cebcb836f
1 changed files with 2 additions and 1 deletions
|
@ -153,6 +153,7 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute)
|
||||||
// and (if we haven't done so) load the dive list
|
// and (if we haven't done so) load the dive list
|
||||||
if (!same_string(prefs.cloud_storage_email, "") &&
|
if (!same_string(prefs.cloud_storage_email, "") &&
|
||||||
!same_string(prefs.cloud_storage_password, "")) {
|
!same_string(prefs.cloud_storage_password, "")) {
|
||||||
|
setStartPageText(tr("Testing cloud credentials"));
|
||||||
appendTextToLog("Have credentials, let's see if they are valid");
|
appendTextToLog("Have credentials, let's see if they are valid");
|
||||||
if (!mgr)
|
if (!mgr)
|
||||||
mgr = new QNetworkAccessManager(this);
|
mgr = new QNetworkAccessManager(this);
|
||||||
|
@ -184,7 +185,7 @@ void QMLManager::provideAuth(QNetworkReply *reply, QAuthenticator *auth)
|
||||||
auth->password() == QString(prefs.cloud_storage_password)) {
|
auth->password() == QString(prefs.cloud_storage_password)) {
|
||||||
// OK, credentials have been tried and didn't work, so they are invalid
|
// OK, credentials have been tried and didn't work, so they are invalid
|
||||||
appendTextToLog("Cloud credentials are invalid");
|
appendTextToLog("Cloud credentials are invalid");
|
||||||
setStartPageText(tr("No recorded dives found. You can download your dives to this device from the Subsurface cloud storage service, from your dive computer, or add them manually."));
|
setStartPageText(tr("Cloud credentials are invalid"));
|
||||||
reply->disconnect();
|
reply->disconnect();
|
||||||
reply->abort();
|
reply->abort();
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
|
Loading…
Reference in a new issue