From 62ef78b5e8db4fb95a915c15e3fe117f99df7f65 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 13 Dec 2017 22:07:21 +0100 Subject: 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 --- mobile-widgets/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets') 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) -- cgit v1.2.3-70-g09d2