summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorChristian <git-developer@users.noreply.github.com>2020-11-16 05:39:46 +0100
committerChristian <git-developer@users.noreply.github.com>2020-11-16 13:35:33 +0100
commit85ef6ca3ba4524f98c12c57a0e5b7fd62187fd08 (patch)
treeb0e243d3f0b55cd248798fb33fa41416026294fe /res
parent3838247eed3b2c89a5578ec2484a75c9ea227095 (diff)
fix(midi-components): define `this.group` before first use
This removes the warning ```Warning [Controller]: ControlDoublePrivate::getControl returning NULL for ( "" , "show_focus" )``` when an effect unit is created with `allowFocusWhenParametersHidden`.
Diffstat (limited to 'res')
-rw-r--r--res/controllers/midi-components-0.0.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js
index 792cd737e9..79ce9d948f 100644
--- a/res/controllers/midi-components-0.0.js
+++ b/res/controllers/midi-components-0.0.js
@@ -748,6 +748,7 @@
this.setCurrentUnit = function(newNumber) {
this.currentUnitNumber = newNumber;
+ this.group = "[EffectRack1_EffectUnit" + newNumber + "]";
if (allowFocusWhenParametersHidden) {
engine.setValue(this.group, "show_focus", 0);
} else {
@@ -758,8 +759,6 @@
}
engine.setValue(this.group, "controller_input_active", 0);
- this.group = "[EffectRack1_EffectUnit" + newNumber + "]";
-
if (allowFocusWhenParametersHidden) {
engine.setValue(this.group, "show_focus", 1);
} else {