From 64b044a42cef66e88b6ebf0d8155ed4599ab0b60 Mon Sep 17 00:00:00 2001 From: Tian Shilin Date: Tue, 10 Mar 2026 16:06:18 +0800 Subject: [PATCH] fix: Abnormal behavior when dragging app icons to the tray window log: The `onActionsAlwaysVisibleChanged` signal handler and `closeStashPopupTimer` timer in `tray.qml` failed to check the `stashedPopup.dropHover` state when determining whether to close the panel. This caused the panel to close immediately after drag-and-drop completion. Added a !stashedPopup.dropHover check to the panel closure condition to ensure the closure logic does not trigger while the user is dragging an icon onto the panel area. pms: bug-336185 --- panels/dock/tray/package/tray.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panels/dock/tray/package/tray.qml b/panels/dock/tray/package/tray.qml index b3f14e230..11b9b6419 100644 --- a/panels/dock/tray/package/tray.qml +++ b/panels/dock/tray/package/tray.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -84,7 +84,7 @@ AppletItem { Connections { target: DDT.TraySortOrderModel function onActionsAlwaysVisibleChanged(val) { - if (!val && !Panel.contextDragging) { + if (!val && !Panel.contextDragging && !stashedPopup.dropHover) { closeStashPopupTimer.start() } } @@ -96,7 +96,7 @@ AppletItem { interval: 10 repeat: false onTriggered: { - if (!Panel.contextDragging) { + if (!Panel.contextDragging && !stashedPopup.dropHover) { stashedPopup.close() } }