summaryrefslogtreecommitdiff
path: root/launcher/components/Spell.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-06 14:32:40 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-07 17:27:45 +0800
commit97c2e2bf5a6e0a497e0a11cde6611c68f3767cd6 (patch)
tree1e0dc8e2106f09232a74740cba2dab6c6dda0359 /launcher/components/Spell.qml
parent2f857a56d14ec5937df5bf94f6d2775e47cbf817 (diff)
fix(launcher:selection): widget switching
Diffstat (limited to 'launcher/components/Spell.qml')
-rw-r--r--launcher/components/Spell.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/launcher/components/Spell.qml b/launcher/components/Spell.qml
index 4501132..5d45e0b 100644
--- a/launcher/components/Spell.qml
+++ b/launcher/components/Spell.qml
@@ -72,6 +72,19 @@ IComponent {
};
}
+ home: function () {
+ if (loader.repeater.count === 0)
+ return true;
+ selectedIndex = -1;
+ selectedIndex = 0;
+ }
+ end: function () {
+ if (loader.repeater.count === 0)
+ return true;
+ selectedIndex = loader.repeater.count;
+ selectedIndex = loader.repeater.count - 1;
+ }
+
prev: function () {
if (selectedIndex <= 0)
return true;