Don't handle FinishedTrack as Stopped (#403)
* Don't handle FinishedTrack as Stopped * consider `FinishedTrack` as still playing Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
@@ -30,7 +30,7 @@ struct MprisState(String, Option<Playable>);
|
|||||||
|
|
||||||
fn get_playbackstatus(spotify: Arc<Spotify>) -> String {
|
fn get_playbackstatus(spotify: Arc<Spotify>) -> String {
|
||||||
match spotify.get_current_status() {
|
match spotify.get_current_status() {
|
||||||
PlayerEvent::Playing => "Playing",
|
PlayerEvent::Playing | PlayerEvent::FinishedTrack => "Playing",
|
||||||
PlayerEvent::Paused => "Paused",
|
PlayerEvent::Paused => "Paused",
|
||||||
_ => "Stopped",
|
_ => "Stopped",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user