highlevel_api: fix pause toggling
Some checks failed
Build and test / build (push) Has been cancelled
Build and test / check (push) Has been cancelled
Build and test / test (push) Has been cancelled
Build and test / docs (push) Has been cancelled

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-15 17:37:48 +01:00
parent ee5aa30335
commit 5a74dd0b02
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -323,9 +323,9 @@ impl MpvExt for Mpv {
Switch::Off => "yes",
Switch::Toggle => {
if self.is_playing().await? {
"no"
} else {
"yes"
} else {
"no"
}
}
};