mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ec136defa8
commit
bdf8bc676b
1 changed files with 7 additions and 1 deletions
|
@ -179,9 +179,15 @@ void QMLManager::finishSetup()
|
||||||
// but we need to make sure we stay the only ones accessing git storage
|
// but we need to make sure we stay the only ones accessing git storage
|
||||||
alreadySaving = true;
|
alreadySaving = true;
|
||||||
openLocalThenRemote(url);
|
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 {
|
} else {
|
||||||
setCredentialStatus(INCOMPLETE);
|
setCredentialStatus(INCOMPLETE);
|
||||||
appendTextToLog(QStringLiteral("no cloud credentials"));
|
appendTextToLog(tr("no cloud credentials"));
|
||||||
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
||||||
}
|
}
|
||||||
setDistanceThreshold(prefs.distance_threshold);
|
setDistanceThreshold(prefs.distance_threshold);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue