diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-10-09 09:49:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-09 10:03:21 -0700 |
commit | 26234d326fe0e9aaa82c253762f89b20101b9bf4 (patch) | |
tree | 3dcc784057ac68cad5ede3b3d094ea3fd2693c8e /mobile-widgets/qml | |
parent | 315a3335c2729e163490444ee1ad80844b9d8321 (diff) | |
download | subsurface-26234d326fe0e9aaa82c253762f89b20101b9bf4.tar.gz |
Mobile: no switch to auto cloud in no-cloud mode
We disabled the drawer menu button to switch between auto/manual
sync when in no cloud mode. Unfortunately, disabeling does not
give a visual cue to the user (like greyed out). Instead, just
make this button invisable in no cloud mode.
In conjunction a question. The manual sync to cloud menu item
takes you to the Cloud Credetials page in case pressed in
no cloud mode. While valid, this seems strange. This is not
changed in this commit.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 03c33a5ba..93f2a6c5c 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -276,7 +276,7 @@ Kirigami.ApplicationWindow { name: syncToCloud ? ":/icons/ic_cloud_off.svg" : ":/icons/ic_cloud_done.svg" } text: syncToCloud ? qsTr("Disable auto cloud sync") : qsTr("Enable auto cloud sync") - enabled: prefs.credentialStatus !== CloudStatus.CS_NOCLOUD + visible: prefs.credentialStatus !== CloudStatus.CS_NOCLOUD onTriggered: { syncToCloud = !syncToCloud if (!syncToCloud) { |