1
0
Fork 0

Change bypassed Enabled label to Not Bypassed

To remove ambiguity.
This commit is contained in:
Robbert van der Helm 2022-03-01 23:55:23 +01:00
parent fdda32696a
commit 37e88d063f
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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;