Restart queue if pressing play when stopped (#399)

* Restart queue if pressing play when stopped

* Remove FinishedTrack from match

* Formatting
This commit is contained in:
André Andersson
2021-01-19 21:47:41 +01:00
committed by GitHub
parent cfb91493a5
commit 92335594bc
3 changed files with 14 additions and 9 deletions

View File

@@ -400,9 +400,9 @@ fn run_dbus_server(
});
let method_playpause = {
let spotify = spotify.clone();
let queue = queue.clone();
f.method("PlayPause", (), move |m| {
spotify.toggleplayback();
queue.toggleplayback();
Ok(vec![m.msg.method_return()])
})
};