summaryrefslogtreecommitdiff
path: root/popups/launcher/components/App.qml
diff options
context:
space:
mode:
Diffstat (limited to 'popups/launcher/components/App.qml')
-rw-r--r--popups/launcher/components/App.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml
index 89f3611..a44b2ec 100644
--- a/popups/launcher/components/App.qml
+++ b/popups/launcher/components/App.qml
@@ -111,6 +111,13 @@ IComponent {
syncSelectionState: function () {
Qt.callLater(() => {
+ if (!isSelectedPriority()) {
+ if (state.selected === listView.itemAtIndex(selectedIndex))
+ state.selected = null;
+
+ return;
+ }
+
if (selectedIndex < 0 || selectedIndex >= listView.count || !root.visible)
return;
@@ -119,11 +126,6 @@ IComponent {
});
}
- onLeave: {
- if (state.selected === listView.itemAtIndex(selectedIndex))
- state.selected = null;
- }
-
IInnerComponent {
id: layout
fromParent: false