This commit is contained in:
Varris 2023-09-25 15:53:54 +02:00
parent 90d81d4185
commit 89b4251478
1 changed files with 14 additions and 8 deletions

View File

@ -90,12 +90,18 @@ const Media = () => Button({
connections: [[Mpris, stack => {
const mpris = Mpris.getPlayer('mpd');
if (mpris.playBackStatus == 'Playing')
switch (mpris.playBackStatus) {
case "Playing":
stack.shown = 'playing';
else if (mpris.playBackStatus == 'Paused')
break;
case "Paused":
stack.shown = 'paused';
else
break;
default:
stack.shown = 'stopped';
break;
}
}]],
}),