mobile: pull undo/redo notification text up

When changes need saving, the notification text was set quite
deep in the calltree in "saveChangesLocal()". I don't know why
this was put so deep in the call tree. In any case, it prevents
asynchronous saving of the data. Therefore, pull it up to
chnagesNeedSaving().

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-30 21:39:08 +01:00 committed by bstoeger
parent dd466d2d48
commit 2172e18298
2 changed files with 17 additions and 16 deletions

View file

@ -179,7 +179,7 @@ public slots:
void addDiveToTrip(int id, int tripId);
void changesNeedSaving(bool fromUndo = false);
void openNoCloudRepo();
void saveChangesCloud(bool forceRemoteSync, bool fromUndo = false);
void saveChangesCloud(bool forceRemoteSync);
void selectDive(int id);
void deleteDive(int id);
void deleteAccount();
@ -262,7 +262,7 @@ private:
void consumeFinishedLoad();
void mergeLocalRepo();
void openLocalThenRemote(QString url);
void saveChangesLocal(bool fromUndo = false);
void saveChangesLocal();
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
QString appLogFileName;