From 97c2e2bf5a6e0a497e0a11cde6611c68f3767cd6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 6 Aug 2025 14:32:40 +0800 Subject: fix(launcher:selection): widget switching --- launcher/components/Spell.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'launcher/components/Spell.qml') 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; -- cgit v1.2.3