From 3b22c27a87f87c2965af683a0d55f48480fab02d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 16 Jul 2025 00:45:53 +0800 Subject: mpris: preferedplayer --- bar/Mpris.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bar') diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 81a9bc8..a2895aa 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -77,9 +77,8 @@ Item { MouseArea { anchors.fill: parent acceptedButtons: Qt.MiddleButton | Qt.RightButton - onClicked: { + onClicked: mouse => { if (mouse.button === Qt.MiddleButton) { - console.log("Middle button clicked"); root.activePlayer?.togglePlaying(); } else if (mouse.button === Qt.RightButton) { root.activePlayer?.next(); -- cgit v1.2.3