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 431dbf6457)
This commit is contained in:
@@ -95,7 +95,8 @@ Kirigami.Page {
|
|||||||
Connections {
|
Connections {
|
||||||
target: RoomManager
|
target: RoomManager
|
||||||
function onCurrentSpaceChanged() {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user