mobile/UI: show result of manual sync

Since we no longer show the noisy git updates to the user, it has become
harder for them to know whether a sync to the cloud was successful.
Since a manual sync will never show the new 'what did you change and
here's how you undo it' notification, it seems easy enough to simply
show a status update.

This adds a passive notification with no action button after the user
either uses the main menu or pulling down on the dive list in order to
trigger a manual sync.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-01-23 10:53:10 -08:00
parent 64dea827bd
commit 1dffe08f17
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ Kirigami.ScrollablePage {
if (Backend.cloud_verification_status === Enums.CS_VERIFIED) {
detailsWindow.endEditMode()
manager.saveChangesCloud(true)
showPassiveNotification(qsTr("Completed manual sync with cloud\n") + manager.syncState)
refreshing = false
} else {
manager.appendTextToLog("sync with cloud storage requested, but credentialStatus is " + Backend.cloud_verification_status)

View file

@ -361,6 +361,7 @@ Kirigami.ApplicationWindow {
globalDrawer.close()
detailsWindow.endEditMode()
manager.saveChangesCloud(true);
showPassiveNotification(qsTr("Completed manual sync with cloud\n") + manager.syncState)
globalDrawer.close()
}
}