Skip to content

Commit

Permalink
Merge pull request #164 from danielwerg/fix/shuffle-loop
Browse files Browse the repository at this point in the history
fix(mpris): shuffle/loop unsupported
  • Loading branch information
Aylur authored Dec 6, 2024
2 parents c9f8f98 + ae85ea9 commit 4c19d8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/mpris/player.vala
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ public class AstalMpris.Player : Object {
_loop_status = Loop.from_string(proxy.loop_status);
notify_property("loop-status");
}
} else {
_loop_status = Loop.UNSUPPORTED;
notify_property("loop-status");
}

if (rate != proxy.rate) {
Expand All @@ -452,6 +455,9 @@ public class AstalMpris.Player : Object {
_shuffle_status = Shuffle.from_bool(proxy.shuffle);
notify_property("shuffle-status");
}
} else {
_shuffle_status = Shuffle.UNSUPPORTED;
notify_property("shuffle-status");
}

if (volume != proxy.volume) {
Expand Down

0 comments on commit 4c19d8d

Please sign in to comment.