mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
64dea827bd
commit
1dffe08f17
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue