mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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>
This commit is contained in:
parent
6b9a1f3850
commit
f8742a48b2
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ Kirigami.ApplicationWindow {
|
||||||
enabled: manager.credentialStatus !== QMLManager.CS_NOCLOUD
|
enabled: manager.credentialStatus !== QMLManager.CS_NOCLOUD
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
syncToCloud = !syncToCloud
|
syncToCloud = !syncToCloud
|
||||||
if (syncToCloud) {
|
if (!syncToCloud) {
|
||||||
showPassiveNotification(qsTr("Turning off automatic sync to cloud causes all data to only be \
|
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' \
|
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)
|
if you have network connectivity and want to sync your data to cloud storage."), 10000)
|
||||||
|
|
Loading…
Reference in a new issue