Change bypassed Enabled label to Not Bypassed
To remove ambiguity.
This commit is contained in:
parent
fdda32696a
commit
37e88d063f
|
@ -694,7 +694,7 @@ impl<P: ClapPlugin> Wrapper<P> {
|
|||
if value > 0.5 {
|
||||
strlcpy(dest, "Bypassed")
|
||||
} else {
|
||||
strlcpy(dest, "Enabled")
|
||||
strlcpy(dest, "Not Bypassed")
|
||||
}
|
||||
|
||||
true
|
||||
|
@ -734,7 +734,7 @@ impl<P: ClapPlugin> Wrapper<P> {
|
|||
if param_id == *BYPASS_PARAM_HASH {
|
||||
let normalized_valeu = match display {
|
||||
"Bypassed" => 1.0,
|
||||
"Enabled" => 0.0,
|
||||
"Not Bypassed" => 0.0,
|
||||
_ => return false,
|
||||
};
|
||||
*value = normalized_valeu;
|
||||
|
|
|
@ -458,7 +458,7 @@ impl<P: Vst3Plugin> IEditController for Wrapper<P> {
|
|||
if value_normalized > 0.5 {
|
||||
u16strlcpy(dest, "Bypassed")
|
||||
} else {
|
||||
u16strlcpy(dest, "Enabled")
|
||||
u16strlcpy(dest, "Not Bypassed")
|
||||
}
|
||||
|
||||
kResultOk
|
||||
|
@ -490,7 +490,7 @@ impl<P: Vst3Plugin> IEditController for Wrapper<P> {
|
|||
if id == *BYPASS_PARAM_HASH {
|
||||
let value = match string.as_str() {
|
||||
"Bypassed" => 1.0,
|
||||
"Enabled" => 0.0,
|
||||
"Not Bypassed" => 0.0,
|
||||
_ => return kResultFalse,
|
||||
};
|
||||
*value_normalized = value;
|
||||
|
|
Loading…
Reference in a new issue