Fix RoomDrawer is visible when no room is open

Fix #246
This commit is contained in:
Carl Schwan
2021-02-06 00:01:36 +01:00
parent 66b06aac6e
commit 10054bf879

View File

@@ -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