Move check for RoomPage being visible on the pagestack to enabled so the RoomDrawer can't be swiped on mobile.

This commit is contained in:
James Graham
2022-12-07 20:12:31 +00:00
parent 5cdfa086b2
commit 4bfa9c783c

View File

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