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