diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-01 23:46:10 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-01 23:46:10 +0800 |
| commit | bee452a0240fba8f1e17e6bcbadb5ed577c32d67 (patch) | |
| tree | dc26b8f71294458e792ba59951ee3612badd5f7d /popups/launcher/components/App.qml | |
| parent | 78986a69ec394ab1f1d5d892a094b7084d52ea07 (diff) | |
fix: MouseArea not leaving properly
Diffstat (limited to 'popups/launcher/components/App.qml')
| -rw-r--r-- | popups/launcher/components/App.qml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml index a44b2ec..89f3611 100644 --- a/popups/launcher/components/App.qml +++ b/popups/launcher/components/App.qml @@ -111,13 +111,6 @@ 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; @@ -126,6 +119,11 @@ IComponent { }); } + onLeave: { + if (state.selected === listView.itemAtIndex(selectedIndex)) + state.selected = null; + } + IInnerComponent { id: layout fromParent: false |
