fix inverted switch for MpvExt::set_playback
This commit is contained in:
parent
6a0a275f64
commit
467cac3c50
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user