From ae85ea90419401e726262b466a5c67b533f0746c Mon Sep 17 00:00:00 2001 From: danielwerg <35052399+danielwerg@users.noreply.github.com> Date: Fri, 6 Dec 2024 01:41:00 +0300 Subject: [PATCH] fix(mpris): shuffle/loop unsupported --- lib/mpris/player.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/mpris/player.vala b/lib/mpris/player.vala index f4ba8ec4..e6d84bf5 100644 --- a/lib/mpris/player.vala +++ b/lib/mpris/player.vala @@ -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) { @@ -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) {