diff options
author | Christian <git-developer@users.noreply.github.com> | 2020-11-16 05:39:46 +0100 |
---|---|---|
committer | Christian <git-developer@users.noreply.github.com> | 2020-11-16 13:35:33 +0100 |
commit | 85ef6ca3ba4524f98c12c57a0e5b7fd62187fd08 (patch) | |
tree | b0e243d3f0b55cd248798fb33fa41416026294fe /res | |
parent | 3838247eed3b2c89a5578ec2484a75c9ea227095 (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.js | 3 |
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 { |