Skip to content
Snippets Groups Projects
Verified Commit ef31f67c authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Delay some delegate removals to reduce CPU spent on recalculating sizes

parent 696419c4
No related branches found
No related tags found
No related merge requests found
Pipeline #4659 passed
......@@ -125,6 +125,8 @@ Control {
delegate: Rectangle {
property variant modelData: model
ListView.delayRemove: true
color: model.index == popup.currentIndex ? Nheko.colors.highlight : Nheko.colors.base
height: chooser.child.implicitHeight + 2 * popup.rowMargin
implicitWidth: fullWidth ? ListView.view.width : chooser.child.implicitWidth + 4
......
......@@ -449,6 +449,7 @@ Item {
anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined
width: chat.delegateMaxWidth
height: section.active ? section.height + timelinerow.height : timelinerow.height
ListView.delayRemove: true
Loader {
id: section
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment