diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-03-25 22:31:18 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-03-25 23:42:01 +0100 |
commit | ef31f67c326ebf8d467227b8c92a079add412cac (patch) | |
tree | 131fc88a0f0580550624bb87d7018000f5114b6a /resources/qml/Completer.qml | |
parent | Cleanup CI config and add sections (diff) | |
download | nheko-ef31f67c326ebf8d467227b8c92a079add412cac.tar.xz |
Delay some delegate removals to reduce CPU spent on recalculating sizes
Diffstat (limited to 'resources/qml/Completer.qml')
-rw-r--r-- | resources/qml/Completer.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/Completer.qml b/resources/qml/Completer.qml index bb752597..9700f843 100644 --- a/resources/qml/Completer.qml +++ b/resources/qml/Completer.qml @@ -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 |