Browse Source

Tweak connect action: if source is mono, connect to all targets

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 5 years ago
parent
commit
d872b46c8c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      source/frontend/patchcanvas/patchcanvas.py

+ 8
- 0
source/frontend/patchcanvas/patchcanvas.py View File

@@ -119,6 +119,14 @@ class CanvasObject(QObject):
target_ports[i][1])
CanvasCallback(ACTION_PORTS_CONNECT, 0, 0, data)

if source_ports_len == 1 and target_ports_len > 1:
for i in range(1, target_ports_len):
data = "%i:%i:%i:%i" % (source_ports[0][0],
source_ports[0][1],
target_ports[i][0],
target_ports[i][1])
CanvasCallback(ACTION_PORTS_CONNECT, 0, 0, data)

@pyqtSlot()
def PortContextMenuDisconnect(self):
try:


Loading…
Cancel
Save