mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 14:55:27 +00:00
mobile: allow save when local store is actual
When starting ssrf-mobile, and the local divelist is identical to the cloud version (so same sha1), a save of local modifications to the cloud should be possible. This fix enables this by pretending that a suppressed load from cloud on start is still a valid load from cloud. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
624e44e73d
commit
78eacb6a0c
1 changed files with 1 additions and 0 deletions
|
@ -276,6 +276,7 @@ void QMLManager::loadDivesWithValidCredentials()
|
||||||
if (check_git_sha(fileNamePrt.data()) == 0) {
|
if (check_git_sha(fileNamePrt.data()) == 0) {
|
||||||
qDebug() << "local cache was current, no need to modify dive list";
|
qDebug() << "local cache was current, no need to modify dive list";
|
||||||
appendTextToLog("Cloud sync shows local cache was current");
|
appendTextToLog("Cloud sync shows local cache was current");
|
||||||
|
setLoadFromCloud(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clear_dive_file_data();
|
clear_dive_file_data();
|
||||||
|
|
Loading…
Add table
Reference in a new issue