summaryrefslogtreecommitdiff
path: root/popups/launcher/components/App.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-09-01 23:46:10 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-09-01 23:46:10 +0800
commitbee452a0240fba8f1e17e6bcbadb5ed577c32d67 (patch)
treedc26b8f71294458e792ba59951ee3612badd5f7d /popups/launcher/components/App.qml
parent78986a69ec394ab1f1d5d892a094b7084d52ea07 (diff)
fix: MouseArea not leaving properly
Diffstat (limited to 'popups/launcher/components/App.qml')
-rw-r--r--popups/launcher/components/App.qml12
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