patchbay: missing preArgs implementation

This commit is contained in:
jean-emmanuel 2025-05-13 09:44:16 +02:00
parent 460d8718c9
commit 870d3e3445
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- widgets
- frame: add `allow` property
- matrix: make `quantity` a dynamic property to avoid losing widget state when it changes
- patchbay: missing `preArgs` implementation
## 1.29.1 / 1.29.2

View file

@ -167,11 +167,12 @@ class PatchBay extends Container(Canvas) {
let w = parser.parse({
data: {
type: 'patchbaynode',
comments: this.inputs[k], // TODO: using comment prop to smuggle input identifier, ok but could be more elegant
id: this.getProp('id') + '/' + this.inputs[k],
address: '#{@{parent.address} == "auto" ? "/" + @{parent.id} : @{parent.address}}',
target: '@{parent.target}',
ignoreDefaults: '@{parent.ignoreDefaults}',
preArgs: this.inputs[k],
preArgs: '#{@{parent.preArgs} == "" ? @{this.comments} : Array.isArray(@{parent.preArgs}) ? @{parent.preArgs}.concat(@{this.comments}) : [@{parent.preArgs}, @{this.comments}]}',
bypass: '@{parent.bypass}',
label: k
},