diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-22 07:13:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-27 15:05:37 -0700 |
commit | bdf8bc676b9becd6b3f856eae0a60e2f165fda37 (patch) | |
tree | b6d9ace7a1ec4fbed283a01024c773ec802d882c /mobile-widgets/qmlmanager.cpp | |
parent | ec136defa8eb87c816ba5f3ea3cbfd9e61150ee6 (diff) | |
download | subsurface-bdf8bc676b9becd6b3f856eae0a60e2f165fda37.tar.gz |
QML UI: with a local default file setup, open that at start
And set no cloud mode.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 7780a3ff6..6a5cd9281 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -179,9 +179,15 @@ void QMLManager::finishSetup() // but we need to make sure we stay the only ones accessing git storage alreadySaving = true; openLocalThenRemote(url); + } else if (!same_string(existing_filename, "")) { + setCredentialStatus(NOCLOUD); + appendTextToLog(tr("working in no-cloud mode")); + parse_file(existing_filename); + consumeFinishedLoad(0); + qDebug() << "working in no-cloud mode, finished loading" << dive_table.nr << "dives"; } else { setCredentialStatus(INCOMPLETE); - appendTextToLog(QStringLiteral("no cloud credentials")); + appendTextToLog(tr("no cloud credentials")); setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT); } setDistanceThreshold(prefs.distance_threshold); |