diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-13 22:07:21 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-14 17:01:51 +0100 |
commit | 62ef78b5e8db4fb95a915c15e3fe117f99df7f65 (patch) | |
tree | 3a9550f3314f00291e223c87ef8e84629628a2da | |
parent | c21e99827759413421040fd16d626f9b503bd2a5 (diff) | |
download | subsurface-62ef78b5e8db4fb95a915c15e3fe117f99df7f65.tar.gz |
mobile: show message when going offline
Trivial fix. Show the message "Turning off automatic
sync to cloud ..." when turning automatic sync to offline. Just
a more logical moment to show this message. Also rephrase the
message "Enable auto sync" to "Auto sync enabled". It shows
a status, and not an action.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r-- | mobile-widgets/qml/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index dafcd7c98..6d5739a9b 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -182,11 +182,11 @@ Kirigami.ApplicationWindow { } Kirigami.Action { iconName: syncToCloud ? "icons/ic_cloud_off.svg" : "icons/ic_cloud_done.svg" - text: syncToCloud ? qsTr("Offline mode") : qsTr("Enable auto cloud sync") + text: syncToCloud ? qsTr("Offline mode") : qsTr("Auto cloud sync enabled") enabled: manager.credentialStatus !== QMLManager.CS_NOCLOUD onTriggered: { syncToCloud = !syncToCloud - if (!syncToCloud) { + if (syncToCloud) { showPassiveNotification(qsTr("Turning off automatic sync to cloud causes all data to only be \ stored locally. This can be very useful in situations with limited or no network access. Please choose 'Manual sync with cloud' \ if you have network connectivity and want to sync your data to cloud storage."), 10000) |