From 00ecb4703e4652a8e02d2fb42c2f8675453252e6 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 2 Oct 2021 14:36:44 +0200 Subject: [PATCH] Make sure the right sidebar width is not considered when no room is open Fix #460 --- qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index 3bf7ff19a..4fbfe430f 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -176,7 +176,7 @@ Kirigami.ApplicationWindow { readonly property int defaultPageWidth: Kirigami.Units.gridUnit * 17 readonly property int minPageWidth: Kirigami.Units.gridUnit * 10 readonly property int collapsedPageWidth: Kirigami.Units.gridUnit * 3 - Kirigami.Units.smallSpacing * 3 - readonly property bool shouldUseSidebars: (Config.roomListPageWidth > minPageWidth ? root.width >= Kirigami.Units.gridUnit * 35 : root.width > Kirigami.Units.gridUnit * 27) && roomListLoaded + readonly property bool shouldUseSidebars: RoomManager.hasOpenRoom && (Config.roomListPageWidth > minPageWidth ? root.width >= Kirigami.Units.gridUnit * 35 : root.width > Kirigami.Units.gridUnit * 27) && roomListLoaded readonly property int pageWidth: { if (Config.roomListPageWidth === -1) { return defaultPageWidth;