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:
@@ -890,11 +890,7 @@ impl Spotify {
|
||||
}
|
||||
|
||||
pub fn toggleplayback(&self) {
|
||||
let status = self
|
||||
.status
|
||||
.read()
|
||||
.expect("could not acquire read lock on player state");
|
||||
match *status {
|
||||
match self.get_current_status() {
|
||||
PlayerEvent::Playing => self.pause(),
|
||||
PlayerEvent::Paused => self.play(),
|
||||
_ => (),
|
||||
|
||||
Reference in New Issue
Block a user