summaryrefslogtreecommitdiff
path: root/launcher/components/Emoji.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-18 01:06:16 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-19 20:15:21 +0800
commite4fab905c3657c599574a2cabbf832a73a14e3da (patch)
treef63d839cb3406b21189d17c6a5da5dbf8e87b60f /launcher/components/Emoji.qml
parent13f16c4aaa53aae232b61e6ba52e2851f8e685c7 (diff)
perf(launcher:Components): less checks syncSelectionState
Diffstat (limited to 'launcher/components/Emoji.qml')
-rw-r--r--launcher/components/Emoji.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/launcher/components/Emoji.qml b/launcher/components/Emoji.qml
index bc79e71..551b647 100644
--- a/launcher/components/Emoji.qml
+++ b/launcher/components/Emoji.qml
@@ -88,9 +88,7 @@ IComponent {
}
syncSelectionState: function () {
- if (!loader.view)
- return;
- Qt.callLater(() => state.selected = loader.view.currentItem);
+ Qt.callLater(() => state.selected = loader.view.itemAtIndex(selectedIndex));
}
IInnerComponent {