Skip to content

Commit d963ead

Browse files
yixinsharkdeepin-bot[bot]
authored andcommitted
fix: When clicked the application tray button, the hover background is not displayed
When you click the app tray button, the hover background is displayed normally Log: as title Pms: BUG-288633
1 parent 424b11e commit d963ead

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

panels/dock/tray/package/ActionShowStashDelegate.qml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ AppletItemButton {
2525

2626
padding: itemPadding
2727

28-
D.ColorSelector.hovered: (isDropHover && DDT.TraySortOrderModel.actionsAlwaysVisible) || hoverHandler.hovered
28+
D.ColorSelector.hovered: (isDropHover && DDT.TraySortOrderModel.actionsAlwaysVisible) || hoverHandler.hovered || stashedPopup.popupVisible
2929

3030
property var itemGlobalPoint: {
3131
var a = root
@@ -94,8 +94,12 @@ AppletItemButton {
9494
}
9595

9696
onClicked: {
97-
stashedPopup.open()
98-
toolTip.close()
97+
if (stashedPopup.popupVisible) {
98+
stashedPopup.close();
99+
} else {
100+
stashedPopup.open();
101+
}
102+
toolTip.close();
99103
}
100104

101105
PanelToolTip {

0 commit comments

Comments
 (0)