From 4bfa9c783c81e895ecd930119e7478cd1560c8f5 Mon Sep 17 00:00:00 2001 From: James Graham Date: Wed, 7 Dec 2022 20:12:31 +0000 Subject: [PATCH] Move check for RoomPage being visible on the pagestack to enabled so the RoomDrawer can't be swiped on mobile. --- src/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index dc91302b4..9ecc5e30a 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -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