From 6913a4b447c976979898a536cda1bdc93dba0e7d Mon Sep 17 00:00:00 2001 From: James Graham Date: Mon, 5 May 2025 15:02:03 +0100 Subject: [PATCH] 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 --- src/rooms/RoomListPage.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/rooms/RoomListPage.qml b/src/rooms/RoomListPage.qml index bcc64fc25..6f15c860c 100644 --- a/src/rooms/RoomListPage.qml +++ b/src/rooms/RoomListPage.qml @@ -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() + } + } } } }