Fix RoomDrawer Button Visibility

Change the condition for RoomDrawer handle visibility to pageStack.visibleItems.length > 1 rather than wideMode so that it is always visible when the window is wide enough to have 2 pages shown.

BUG: 455976
This commit is contained in:
James Graham
2022-11-27 13:31:04 +00:00
parent 252108c652
commit 0ef1d4bfa3

View File

@@ -159,7 +159,7 @@ Kirigami.ApplicationWindow {
}
}
enabled: RoomManager.hasOpenRoom && pageStack.layers.depth < 2 && pageStack.depth < 3
handleVisible: enabled && pageStack.layers.depth < 2 && pageStack.depth < 3 && (root.wideScreen || pageStack.currentIndex > 0)
handleVisible: enabled && (pageStack.visibleItems.length > 1 || pageStack.currentIndex > 0)
}
readonly property int defaultPageWidth: Kirigami.Units.gridUnit * 17