From 5a74dd0b0251f406636b73043837d133a80a3ec7 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 15 Dec 2024 17:37:48 +0100 Subject: [PATCH] highlevel_api: fix pause toggling --- src/highlevel_api_extension.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlevel_api_extension.rs b/src/highlevel_api_extension.rs index 29d564b..98a318c 100644 --- a/src/highlevel_api_extension.rs +++ b/src/highlevel_api_extension.rs @@ -323,9 +323,9 @@ impl MpvExt for Mpv { Switch::Off => "yes", Switch::Toggle => { if self.is_playing().await? { - "no" - } else { "yes" + } else { + "no" } } };