diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-14 21:42:27 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-15 14:25:14 +0800 |
| commit | 161df82d510e7611dd635111020a9b42029c5ba7 (patch) | |
| tree | 3765d686ec65bcaa20a4cfcb3b238acb9544111e | |
| parent | 03e59ad8c7be3c0739b28c9122ecdd79c0b09b55 (diff) | |
cleanup: remove legacy state.exec
fix(spell): SelectionState -> state
| -rw-r--r-- | launcher/components/App.qml | 5 | ||||
| -rw-r--r-- | launcher/components/Clip.qml | 1 | ||||
| -rw-r--r-- | launcher/components/Spell.qml | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/launcher/components/App.qml b/launcher/components/App.qml index 61a5d1b..4bea8a0 100644 --- a/launcher/components/App.qml +++ b/launcher/components/App.qml @@ -105,10 +105,9 @@ IComponent { syncSelectionState: function () { Qt.callLater(() => { const item = listView.itemAtIndex(selectedIndex); - if (item) { + if (item) state.selected = item; - state.exec = root.exec; - } else { + else { // wait until it's created listView.forceLayout(); // forces creation if in view Qt.callLater(syncSelectionState); diff --git a/launcher/components/Clip.qml b/launcher/components/Clip.qml index bc688b8..2d185e1 100644 --- a/launcher/components/Clip.qml +++ b/launcher/components/Clip.qml @@ -64,7 +64,6 @@ IComponent { selectedItem = listView.itemAtIndex(selectedIndex); } state.selected = selectedItem; - state.exec = root.exec; }); } diff --git a/launcher/components/Spell.qml b/launcher/components/Spell.qml index 8feec57..f01dddb 100644 --- a/launcher/components/Spell.qml +++ b/launcher/components/Spell.qml @@ -125,8 +125,7 @@ IComponent { return; Qt.callLater(() => { - SelectionState.selected = loader.repeater.itemAt(selectedIndex); - SelectionState.exec = root.exec; + state.selected = loader.repeater.itemAt(selectedIndex); }); } |
