Stay offline if the cloud server is unreachable

It makes no sense to keep trying. Maybe we need a UI to force it online
again, but for now this works much better when using cloud storage while
actually offline.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-07-17 09:15:10 +09:00
parent eaed18ba40
commit 0a58e6d117

View file

@ -63,6 +63,7 @@ bool CheckCloudConnection::checkServer()
}
}
git_storage_update_progress(false, "cloud connection failed");
prefs.git_local_only = true;
if (verbose)
qDebug() << "connection test to cloud server failed" <<
reply->error() << reply->errorString() <<