From f8742a48b2ac9ad8835ff4cb27ca44eba1d761f0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 16 Apr 2018 08:12:53 -0700 Subject: QML UI: show offline notice when going offline The logic was backwards and showed the notice when the user switched to auto sync mode. Fixes #1204 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index fd5e2de26..40c962999 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -208,7 +208,7 @@ Kirigami.ApplicationWindow { 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