Skip to content

Commit 64b044a

Browse files
committed
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
1 parent 51d570d commit 64b044a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

panels/dock/tray/package/tray.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: GPL-3.0-or-later
44

@@ -84,7 +84,7 @@ AppletItem {
8484
Connections {
8585
target: DDT.TraySortOrderModel
8686
function onActionsAlwaysVisibleChanged(val) {
87-
if (!val && !Panel.contextDragging) {
87+
if (!val && !Panel.contextDragging && !stashedPopup.dropHover) {
8888
closeStashPopupTimer.start()
8989
}
9090
}
@@ -96,7 +96,7 @@ AppletItem {
9696
interval: 10
9797
repeat: false
9898
onTriggered: {
99-
if (!Panel.contextDragging) {
99+
if (!Panel.contextDragging && !stashedPopup.dropHover) {
100100
stashedPopup.close()
101101
}
102102
}

0 commit comments

Comments
 (0)