diff options
Diffstat (limited to 'popups/launcher/components/Clip.qml')
| -rw-r--r-- | popups/launcher/components/Clip.qml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/popups/launcher/components/Clip.qml b/popups/launcher/components/Clip.qml index 418ced7..ab2721f 100644 --- a/popups/launcher/components/Clip.qml +++ b/popups/launcher/components/Clip.qml @@ -73,6 +73,14 @@ IComponent { syncSelectionState: function () { Qt.callLater(() => { + if (!isSelectedPriority()) { + // TODO: fix sometimes + if (state.selected && state.selected === listView.itemAtIndex(selectedIndex)) + state.selected = null; + + return; + } + if (!root.visible || selectedIndex < 0 || selectedIndex >= listView.count) return; @@ -81,12 +89,6 @@ IComponent { }); } - onLeave: { - // TODO: fix sometimes - if (state.selected && state.selected === listView.itemAtIndex(selectedIndex)) - state.selected = null; - } - IInnerComponent { id: layout fromParent: false |
