diff options
| author | tassaron | 2022-05-09 22:32:51 -0400 |
|---|---|---|
| committer | tassaron | 2022-05-09 22:32:51 -0400 |
| commit | aee06dcbdad4021e3e1a26bfba731e1efc710e64 (patch) | |
| tree | 74ba562dbc4df43a28c4b9e4f6b8469bd0154541 /src/command.py | |
| parent | e1cb15c639b950014bfce24ad292491292c50b0f (diff) | |
no components on commandline adds a default visualizer
Diffstat (limited to 'src/command.py')
| -rw-r--r-- | src/command.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command.py b/src/command.py index 7b05591..4850051 100644 --- a/src/command.py +++ b/src/command.py @@ -176,6 +176,10 @@ class Command(QtCore.QObject): return "GUI" def createAudioVisualization(self, input, output): + if not self.core.selectedComponents: + print("No components selected. Adding a default visualizer.") + time.sleep(1) + self.core.insertComponent(0, 0, self) self.core.selectedComponents = list( reversed(self.core.selectedComponents)) self.core.componentListChanged() |
