Skip to content

Commit 5dccd5e

Browse files
committed
fix: Add popup visibility handler to ActionShowStashDelegate
Introduce a Connections block to handle `stashedPopup.popupVisibleChanged` signal. When the popup is hidden and no item is being dragged, reset `dropHoverIndex` to -1. This ensures proper state management when the popup visibility changes. pms: BUG-317959
1 parent 32279ca commit 5dccd5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

panels/dock/tray/package/ActionShowStashDelegate.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ AppletItemButton {
3838

3939
return Qt.point(x + width / 2, y + height / 2)
4040
}
41+
Connections {
42+
target: stashedPopup
43+
function onPopupVisibleChanged() {
44+
if (!stashedPopup.popupVisible && !stashedPopup.stashItemDragging) {
45+
dropHoverIndex = -1
46+
}
47+
}
48+
}
4149

4250
onItemGlobalPointChanged: {
4351
stashedPopup.collapsedBtnCenterPoint = itemGlobalPoint

0 commit comments

Comments
 (0)