diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-18 00:37:01 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-19 20:15:21 +0800 |
| commit | d654e200a2edfd7c63a48b119ac332a4944e8278 (patch) | |
| tree | 116ee35156db3f9224ede405965884380d6ea4c3 | |
| parent | 1edfa9b00d61e963148444c79726bc7eb89364db (diff) | |
perf(Clip,Emoji): only query when active
this also stops additional js functions triggered by bindings
| -rw-r--r-- | launcher/components/Clip.qml | 2 | ||||
| -rw-r--r-- | launcher/components/Emoji.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/launcher/components/Clip.qml b/launcher/components/Clip.qml index 66c3ea9..0cde5fa 100644 --- a/launcher/components/Clip.qml +++ b/launcher/components/Clip.qml @@ -10,7 +10,7 @@ import qs.config IComponent { id: root - property var clipHist: Clip.query(inputCleaned) + property var clipHist: active ? Clip.query(inputCleaned) : [] property int selectedIndex: -1 property bool mouseTriggered: false diff --git a/launcher/components/Emoji.qml b/launcher/components/Emoji.qml index 57be01a..bc79e71 100644 --- a/launcher/components/Emoji.qml +++ b/launcher/components/Emoji.qml @@ -10,7 +10,7 @@ import qs.config IComponent { id: root - property var emojis: Emoji.query(input) + property var emojis: active ? Emoji.query(input) : [] property int selectedIndex: -1 property int cols: Math.max(1, Math.floor(innerLoader.width / Math.max(1, Math.round(Launcher.widgetFontSize * 4)))) |
