summaryrefslogtreecommitdiff
path: root/popups/launcher/components/SelectionState.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-08-23 11:59:36 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-08-23 11:59:59 +0800
commit04d4670f933431f5deaad4b2045baeccc2a4494e (patch)
tree0b3a065a7391c6df5a39e2c0bbd3324674743556 /popups/launcher/components/SelectionState.qml
parenta41ab9ad95b4f8e053af82741a45f747e77ff37a (diff)
fix: don't set priority to -1 when indexOf returns that
Diffstat (limited to 'popups/launcher/components/SelectionState.qml')
-rw-r--r--popups/launcher/components/SelectionState.qml12
1 files changed, 1 insertions, 11 deletions
diff --git a/popups/launcher/components/SelectionState.qml b/popups/launcher/components/SelectionState.qml
index d999baa..4231234 100644
--- a/popups/launcher/components/SelectionState.qml
+++ b/popups/launcher/components/SelectionState.qml
@@ -27,17 +27,7 @@ Singleton {
signal syncSelectionState
onSelectedPriorityChanged: {
- // so it won't mess w/ if we changed it via mouse
- if (Math.abs(selectedPriority - previousSelectedPriority) == 1) {
- if (selectedPriority > previousSelectedPriority) {
- priorities[selectedPriority].home();
- } else {
- priorities[selectedPriority].end();
- }
- }
- priorities[selectedPriority].syncSelectionState();
-
- previousSelectedPriority = selectedPriority;
+ priorities[selectedPriority]?.syncSelectionState();
}
// order them based on widgets(which came from order from config)