Force the room list items to update their height when the compactRoomList setting is changed.

Force the room list items to update their height when the compactRoomList setting is changed.

The solution is a bit janky but for whatever reason the height wasn't updating properly which seems to be a qml bug, it sometime happened slow, sometime you would have to turn NeoChat off then on again.

BUG: 494146
This commit is contained in:
James Graham
2025-05-05 15:02:03 +01:00
parent 41e96fca70
commit 6913a4b447

View File

@@ -183,6 +183,17 @@ Kirigami.Page {
}
}
}
// This is a bit silly but it guarantees that the room item heights
// update promptly on change.
Connections {
target: NeoChatConfig
function onCompactRoomListChanged() {
treeView.collapseRecursively()
treeView.expandRecursively()
}
}
}
}
}