From 04d4670f933431f5deaad4b2045baeccc2a4494e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 23 Aug 2026 11:59:36 +0800 Subject: fix: don't set priority to -1 when indexOf returns that --- popups/launcher/components/SelectionState.qml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'popups/launcher/components/SelectionState.qml') 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) -- cgit v1.2.3