summaryrefslogtreecommitdiff
path: root/popups/launcher/components/Spell.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-08-23 14:08:42 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-08-23 14:08:42 +0800
commit09c442f244f9d31af36004ec4be21b7062167cb2 (patch)
treed6a41601fae56595cc289feb512bdc8978873712 /popups/launcher/components/Spell.qml
parent9e431a0947414b6fadc3e6c2b95e375ab629b2fc (diff)
fix(Clip): stop it stealing selected after something else already
changed it
Diffstat (limited to 'popups/launcher/components/Spell.qml')
-rw-r--r--popups/launcher/components/Spell.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml
index 5e5d20a..1f8a15c 100644
--- a/popups/launcher/components/Spell.qml
+++ b/popups/launcher/components/Spell.qml
@@ -115,8 +115,10 @@ IComponent {
syncSelectionState: function () {
Qt.callLater(() => {
- if (!isSelectedPriority() && state.selected === loader.view.itemAtIndex(selectedIndex)) {
- state.selected = null;
+ if (!isSelectedPriority()) {
+ if (state.selected === listView.itemAtIndex(selectedIndex))
+ state.selected = null;
+
return;
}