aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-23 10:53:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-23 13:19:11 -0800
commit1dffe08f17cac1a5c0fab8652c222d3a88c962e8 (patch)
tree73921b9372cd8b13a892bf1c7b173ef284b9e0a9 /mobile-widgets
parent64dea827bdeddf6b6c2e59295bd7bd69c9a147e4 (diff)
downloadsubsurface-1dffe08f17cac1a5c0fab8652c222d3a88c962e8.tar.gz
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml1
-rw-r--r--mobile-widgets/qml/main.qml1
2 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 7c04deddb..fe9d7ddb1 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -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)
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 3dc6cbd85..f16e85808 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -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()
}
}