From 10054bf879bfd8591e7be41eb135311fe097d8ea Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 6 Feb 2021 00:01:36 +0100 Subject: [PATCH] Fix RoomDrawer is visible when no room is open Fix #246 --- qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index 370a04a81..66f3d4df9 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -153,7 +153,7 @@ Kirigami.ApplicationWindow { id: contextDrawer contentItem.implicitWidth: columnWidth edge: Qt.application.layoutDirection == Qt.RightToLeft ? Qt.LeftEdge : Qt.RightEdge - modal: !root.wideScreen + modal: !root.wideScreen && pageStack.layers.depth < 2 && pageStack.depth < 3 onEnabledChanged: drawerOpen = enabled && !modal onModalChanged: drawerOpen = !modal enabled: roomManager.hasOpenRoom && pageStack.layers.depth < 2 && pageStack.depth < 3