From fde6692489c4c9cd97372d6431f00ed184dc8d7c Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 5 Feb 2021 16:44:25 -0500 Subject: [PATCH] correctly toggle pause --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3da01fc..2b19507 100644 --- a/src/main.rs +++ b/src/main.rs @@ -303,8 +303,8 @@ async fn run() -> Result<()> { } Command::TogglePause => { cl.command(match s.status.state { - PlayerState::Play => b"play\n", - PlayerState::Pause => b"pause\n", + PlayerState::Play => b"pause\n", + PlayerState::Pause => b"play\n", _ => continue, }) .await