diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-18 01:08:33 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-19 20:15:21 +0800 |
| commit | f91daeb5787cc8e433ed50b24b2489bfd9b26857 (patch) | |
| tree | 9642aca2afec3aa1ccaa33a00e5207ad5ae9bdf3 /launcher/components/Spell.qml | |
| parent | e4fab905c3657c599574a2cabbf832a73a14e3da (diff) | |
ux(launcher:Components): preserve selected position
Diffstat (limited to 'launcher/components/Spell.qml')
| -rw-r--r-- | launcher/components/Spell.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/components/Spell.qml b/launcher/components/Spell.qml index d04e0eb..2072057 100644 --- a/launcher/components/Spell.qml +++ b/launcher/components/Spell.qml @@ -27,6 +27,10 @@ IComponent { } onAspellChanged: { + if (selectedIndex !== -1) { + syncSelectionState(); + return; + } selectedIndex = aspell.length > 0 ? 0 : -1; // selectedIndexChanged dont get called somehow syncSelectionState(); |
