From 91ef8806f2aa5f5559a27826964c5746bc6304a7 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 16 Feb 2021 21:42:47 +0100 Subject: [PATCH] Show contextdrawer only in RoomPage --- qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index f3e150907..ac3b7fe5e 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -154,7 +154,7 @@ Kirigami.ApplicationWindow { id: contextDrawer contentItem.implicitWidth: columnWidth edge: Qt.application.layoutDirection == Qt.RightToLeft ? Qt.LeftEdge : Qt.RightEdge - modal: !root.wideScreen && pageStack.layers.depth < 2 && pageStack.depth < 3 + modal: !root.wideScreen || !enabled onEnabledChanged: drawerOpen = enabled && !modal onModalChanged: drawerOpen = !modal enabled: roomManager.hasOpenRoom && pageStack.layers.depth < 2 && pageStack.depth < 3