summaryrefslogtreecommitdiff
path: root/popups/launcher/components/SelectionState.qml
diff options
context:
space:
mode:
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)