From 1dffe08f17cac1a5c0fab8652c222d3a88c962e8 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 23 Jan 2021 10:53:10 -0800 Subject: [PATCH] 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 --- mobile-widgets/qml/DiveList.qml | 1 + mobile-widgets/qml/main.qml | 1 + 2 files changed, 2 insertions(+) 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() } }