From bdf8bc676b9becd6b3f856eae0a60e2f165fda37 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 22 Apr 2016 07:13:14 -0700 Subject: QML UI: with a local default file setup, open that at start And set no cloud mode. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2