From 145d20ee5a6fc80f15626b7d8aa88f7c8111cb8a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 14 Aug 2025 18:43:48 +0800 Subject: fix(SelectionState): activeRect not following when selectedPriority changes(of different wigets) --- launcher/components/SelectionState.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/launcher/components/SelectionState.qml b/launcher/components/SelectionState.qml index b624dcd..e860aea 100644 --- a/launcher/components/SelectionState.qml +++ b/launcher/components/SelectionState.qml @@ -12,10 +12,13 @@ Singleton { property var widgets: [] onSelectedPriorityChanged: { - if (selectedPriority > previousSelectedPriority) + if (selectedPriority > previousSelectedPriority) { priorities[selectedPriority].home(); - else + priorities[selectedPriority].syncSelectionState(); + } else { priorities[selectedPriority].end(); + priorities[selectedPriority].syncSelectionState(); + } previousSelectedPriority = selectedPriority; } -- cgit v1.2.3