summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-18 20:12:58 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-24 08:25:51 +0900
commit5f5d4ffbc944fce6ceeb35da205915b6ff55c5e1 (patch)
treea7421483d50c1d50712c8d310618ffef580d9629
parentd92b51352eaa0bee1f8f867b6bf94814d848e8c3 (diff)
downloadsubsurface-5f5d4ffbc944fce6ceeb35da205915b6ff55c5e1.tar.gz
mobile-widgets/qml: disable global drawer in startpage
Do not show global drawer when user is doing login. Signed-off-by: Jan Iversen <jani@apache.org>
-rw-r--r--mobile-widgets/qml/main.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 44494f92a..16643e5dc 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -165,6 +165,8 @@ Kirigami.ApplicationWindow {
globalDrawer: Kirigami.GlobalDrawer {
id: gDrawer
height: rootItem.height
+ enabled: (prefs.credentialStatus === CloudStatus.CS_NOCLOUD ||
+ prefs.credentialStatus === CloudStatus.CS_VERIFIED)
topContent: Image {
source: "qrc:/qml/icons/dive.jpg"
Layout.fillWidth: true