systemtray AbstractItem: only press and hold for menu with LeftButton

It's not expected to be able to tap and hold with right mouse button
wilder-5.25
Noah Davis 4 years ago
parent 08daea6023
commit 10fbca99a5
  1. 2
      applets/systemtray/package/contents/ui/items/AbstractItem.qml

@ -101,7 +101,7 @@ PlasmaCore.ToolTipArea {
abstractItem.hideImmediately() abstractItem.hideImmediately()
abstractItem.pressed(mouse) abstractItem.pressed(mouse)
} }
onPressAndHold: { onPressAndHold: if (mouse.button === Qt.LeftButton) {
abstractItem.contextMenu(mouse) abstractItem.contextMenu(mouse)
} }
onWheel: { onWheel: {

Loading…
Cancel
Save