diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-16 00:45:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-16 00:46:53 +0800 |
| commit | 3b22c27a87f87c2965af683a0d55f48480fab02d (patch) | |
| tree | 115754b02bd55159f941b72c584126184a3ab340 /bar | |
| parent | 3352b13c1116764e30d464226b0dfc8423a0c295 (diff) | |
mpris: preferedplayer
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Mpris.qml | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |
