From bee452a0240fba8f1e17e6bcbadb5ed577c32d67 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 1 Sep 2026 23:46:10 +0800 Subject: fix: MouseArea not leaving properly --- popups/launcher/components/App.qml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'popups/launcher/components/App.qml') 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 -- cgit v1.2.3