mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: redesign the user notification
The old system of cloud access updates with fake percentages just wasn't helpful. Even worse, it hid a lot important information from the user. This should be more useful (but it will require that we localize the messages sent from the git progress notifications and make them more 'user ready'). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2d5f023b58
commit
b2b51c833a
9 changed files with 106 additions and 130 deletions
|
@ -52,18 +52,18 @@ bool CheckCloudConnection::checkServer()
|
|||
mgr->deleteLater();
|
||||
if (verbose > 1)
|
||||
qWarning() << "Cloud storage: successfully checked connection to cloud server";
|
||||
git_storage_update_progress(false, "successfully checked cloud connection");
|
||||
git_storage_update_progress("successfully checked cloud connection");
|
||||
return true;
|
||||
}
|
||||
} else if (seconds < prefs.cloud_timeout) {
|
||||
QString text = QString("waited %1 sec for cloud connetion").arg(seconds);
|
||||
git_storage_update_progress(false, qPrintable(text));
|
||||
git_storage_update_progress(qPrintable(text));
|
||||
} else {
|
||||
disconnect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
reply->abort();
|
||||
}
|
||||
}
|
||||
git_storage_update_progress(false, "cloud connection failed");
|
||||
git_storage_update_progress("cloud connection failed");
|
||||
prefs.git_local_only = true;
|
||||
if (verbose)
|
||||
qDebug() << "connection test to cloud server failed" <<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue