mirror of
https://github.com/figsoda/mmtc
synced 2024-09-21 06:01:53 +00:00
correctly toggle pause
This commit is contained in:
parent
80389edbf1
commit
fde6692489
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue