Fix toggling in SpircCommand::PlayPause

Fix play/pause toggling in handle_play_pause() to correctly call handled_play()/handle_pause() based on the state.
This commit is contained in:
Zsombor Welker 2021-02-20 14:53:24 +01:00 committed by Zsombor Welker
parent 45f4276d68
commit 392a12af92

View file

@ -828,7 +828,7 @@ impl SpircTask {
self.handle_play() self.handle_play()
} }
SpircPlayStatus::Playing { .. } | SpircPlayStatus::LoadingPlay { .. } => { SpircPlayStatus::Playing { .. } | SpircPlayStatus::LoadingPlay { .. } => {
self.handle_play() self.handle_pause()
} }
_ => (), _ => (),
} }