fix bug in togglecmd

This commit is contained in:
onyx-and-iris 2022-10-05 13:12:12 +01:00
parent 8bb8336599
commit c7a265fb33

View File

@ -113,7 +113,7 @@ func toggleCmd(vm *voicemeeter.Remote, cmd string, verbose bool) error {
err = fmt.Errorf("unable to toggle %s", cmd) err = fmt.Errorf("unable to toggle %s", cmd)
return err return err
} }
vm.SetFloat(cmd[1:], 1-val) vm.SetFloat(cmd, 1-val)
if verbose { if verbose {
fmt.Println("Toggling", cmd) fmt.Println("Toggling", cmd)
} }