diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-18 01:06:16 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-19 20:15:21 +0800 |
| commit | e4fab905c3657c599574a2cabbf832a73a14e3da (patch) | |
| tree | f63d839cb3406b21189d17c6a5da5dbf8e87b60f /launcher/components/Emoji.qml | |
| parent | 13f16c4aaa53aae232b61e6ba52e2851f8e685c7 (diff) | |
perf(launcher:Components): less checks syncSelectionState
Diffstat (limited to 'launcher/components/Emoji.qml')
| -rw-r--r-- | launcher/components/Emoji.qml | 4 |
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 { |
