Prevent the TapHandler in AvatarTabButton from triggering clicked()

This caused right-clicks on this component (for example, in the space
drawer) to cause clicked() to be called on the delegate.

(cherry picked from commit 91d9406c38)
This commit is contained in:
Joshua Goins
2023-08-14 16:45:16 -04:00
parent 15d8c39185
commit aa461fe078

View File

@@ -28,6 +28,8 @@ Delegates.RoundedItemDelegate {
TapHandler {
acceptedButtons: Qt.RightButton
acceptedDevices: PointerDevice.Mouse
grabPermissions: PointerHandler.TakeOverForbidden
gesturePolicy: TapHandler.WithinBounds
onTapped: root.contextMenuRequested()
}