diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-14 18:43:48 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-14 21:42:44 +0800 |
| commit | 145d20ee5a6fc80f15626b7d8aa88f7c8111cb8a (patch) | |
| tree | 8a97b97d6f99394a0a1b7d81dc207204d0feb6f8 | |
| parent | a417c8539961858e99da9623007feba14ed61170 (diff) | |
fix(SelectionState): activeRect not following when selectedPriority changes(of different wigets)
| -rw-r--r-- | launcher/components/SelectionState.qml | 7 |
1 files 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; } |
