summaryrefslogtreecommitdiff
path: root/launcher/components
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-16 17:18:28 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-16 17:18:28 +0800
commit873629a42815712b2559ee0e8e5c4ce4e7612dd6 (patch)
tree2ffaecc854fa771d6676ebb7c0029a62685eb590 /launcher/components
parent4fe12bbabfe2bb4c468c66348afedb34aee0b783 (diff)
fix(Spell): activeRect out of sync
Diffstat (limited to 'launcher/components')
-rw-r--r--launcher/components/Spell.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/components/Spell.qml b/launcher/components/Spell.qml
index 882c539..6cd847c 100644
--- a/launcher/components/Spell.qml
+++ b/launcher/components/Spell.qml
@@ -36,12 +36,12 @@ IComponent {
}
onSelectedIndexChanged: {
- syncSelectionState();
if (!loader.view || !loader.item || !loader.item.flickable)
return;
if (selectedIndex < 0 || selectedIndex >= loader.view.count)
return;
Qt.callLater(() => {
+ syncSelectionState();
loader.view.currentIndex = selectedIndex;
loader.view.positionViewAtIndex(selectedIndex, GridView.Contain);
});