From 26234d326fe0e9aaa82c253762f89b20101b9bf4 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 9 Oct 2018 09:49:21 +0200 Subject: 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 --- 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 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) { -- cgit v1.2.3-70-g09d2