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.
This commit is contained in:
Joshua Goins
2026-02-14 14:15:06 -05:00
parent e1b267622d
commit 431dbf6457

View File

@@ -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());
}
}