fix inverted switch for `MpvExt::set_playback`
Build and test / build (push) Successful in 1m56s Details
Build and test / check (push) Successful in 1m55s Details
Build and test / docs (push) Successful in 3m57s Details
Build and test / test (push) Successful in 3m57s Details

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-03 21:02:46 +02:00
parent 6a0a275f64
commit 467cac3c50
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 2 additions and 2 deletions

View File

@ -319,8 +319,8 @@ impl MpvExt for Mpv {
async fn set_playback(&self, option: Switch) -> Result<(), MpvError> {
let enabled = match option {
Switch::On => "yes",
Switch::Off => "no",
Switch::On => "no",
Switch::Off => "yes",
Switch::Toggle => {
if self.is_playing().await? {
"no"