Skip to content

Commit d20db8a

Browse files
committed
fix: Application tray button can accept right mouse button
only accept left mouse button Log: as title Pms: BUG-293895
1 parent 1b80c23 commit d20db8a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

panels/dock/tray/package/ActionShowStashDelegate.qml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ AppletItemButton {
5656
name: "opened"
5757
PropertyChanges { target: root.contentItem; rotation: 180 }
5858
},
59-
6059
State {
6160
name: "closed"
6261
PropertyChanges { target: root.contentItem; rotation: 0 }
@@ -93,13 +92,17 @@ AppletItemButton {
9392
when: stashedPopup.popupVisibleChanged
9493
}
9594

96-
onClicked: {
97-
if (stashedPopup.popupVisible) {
98-
stashedPopup.close();
99-
} else {
100-
stashedPopup.open();
95+
MouseArea {
96+
anchors.fill: parent
97+
acceptedButtons: Qt.LeftButton
98+
onClicked: {
99+
if (stashedPopup.popupVisible) {
100+
stashedPopup.close();
101+
} else {
102+
stashedPopup.open();
103+
}
104+
toolTip.close();
101105
}
102-
toolTip.close();
103106
}
104107

105108
PanelToolTip {

0 commit comments

Comments
 (0)