correctly toggle pause

This commit is contained in:
figsoda 2021-02-05 16:44:25 -05:00
parent 80389edbf1
commit fde6692489

View file

@ -303,8 +303,8 @@ async fn run() -> Result<()> {
} }
Command::TogglePause => { Command::TogglePause => {
cl.command(match s.status.state { cl.command(match s.status.state {
PlayerState::Play => b"play\n", PlayerState::Play => b"pause\n",
PlayerState::Pause => b"pause\n", PlayerState::Pause => b"play\n",
_ => continue, _ => continue,
}) })
.await .await