From d8619356d314ba474e4cbfe576e31e79881dd8fb Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 14 Feb 2026 14:15:06 -0500 Subject: [PATCH] Stop tree view from attempting to expand sections too early This fixes a consistent bug for me, where the expandRecursively call (somehow) predates the room list being populated. Which resulted in some or all sections being collapsed on start-up. (cherry picked from commit 431dbf645720b7fb7d1873cf60093615046640b1) --- src/rooms/RoomListPage.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rooms/RoomListPage.qml b/src/rooms/RoomListPage.qml index 4ff944931..e558128b3 100644 --- a/src/rooms/RoomListPage.qml +++ b/src/rooms/RoomListPage.qml @@ -95,7 +95,8 @@ Kirigami.Page { Connections { target: RoomManager function onCurrentSpaceChanged() { - treeView.expandRecursively(); + // HACK: If we don't delay this, it attempts to expand the tree while it's half or not loaded at all. + Qt.callLater(() => treeView.expandRecursively()); } }