aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-16 08:12:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-16 08:12:56 -0700
commitf8742a48b2ac9ad8835ff4cb27ca44eba1d761f0 (patch)
treea0aef9ff225da73ec3c28e68cc7760c9cc9cf6f0 /mobile-widgets/qml
parent6b9a1f38504885d0af0aa9be4b269559395075bd (diff)
downloadsubsurface-f8742a48b2ac9ad8835ff4cb27ca44eba1d761f0.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/main.qml2
1 files changed, 1 insertions, 1 deletions
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)