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:
@@ -158,8 +158,8 @@ Kirigami.ApplicationWindow {
|
|||||||
dim = false
|
dim = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
enabled: RoomManager.hasOpenRoom && pageStack.layers.depth < 2 && pageStack.depth < 3
|
enabled: RoomManager.hasOpenRoom && pageStack.layers.depth < 2 && pageStack.depth < 3 && (pageStack.visibleItems.length > 1 || pageStack.currentIndex > 0)
|
||||||
handleVisible: enabled && (pageStack.visibleItems.length > 1 || pageStack.currentIndex > 0)
|
handleVisible: enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly property int defaultPageWidth: Kirigami.Units.gridUnit * 17
|
readonly property int defaultPageWidth: Kirigami.Units.gridUnit * 17
|
||||||
|
|||||||
Reference in New Issue
Block a user