mobile: track if we have changes that aren't synced to cloud

If we haven't connected at all to the cloud server we assume that there are
local changes. And whenever we save changes only locally, we also set that
flag.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-06-13 13:45:06 -07:00
parent 8b478a969d
commit 01de67a5a6
2 changed files with 17 additions and 0 deletions

View file

@ -263,9 +263,11 @@ private:
bool checkDuration(const DiveObjectHelper &myDive, struct dive *d, QString duration);
bool checkDepth(const DiveObjectHelper &myDive, struct dive *d, QString depth);
bool currentGitLocalOnly;
bool localChanges;
QString m_progressMessage;
bool m_btEnabled;
void updateAllGlobalLists();
void updateHaveLocalChanges(bool status);
location_t getGps(QString &gps);
QString m_pluggedInDeviceName;