Skip to content

Commit 9932fd7

Browse files
committed
Fix mpris playback status on play/pause
1 parent bba4990 commit 9932fd7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/shortcuts/mpris.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ function registerMPRIS(win) {
8282
playPause()
8383
}
8484
});
85+
player.on("playpause", () => {
86+
player.playbackStatus = player.playbackStatus == 'Playing' ? "Paused" : "Playing";
87+
playPause();
88+
});
8589

86-
player.on("playpause", playPause);
8790
player.on("next", next);
8891
player.on("previous", previous);
8992

0 commit comments

Comments
 (0)