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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user