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

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

View File

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