Show contextdrawer only in RoomPage

This commit is contained in:
Tobias Fella
2021-02-16 21:42:47 +01:00
parent e546c12b45
commit 91ef8806f2

View File

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