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 | |
| parent | e1cb15c639b950014bfce24ad292491292c50b0f (diff) | |
no components on commandline adds a default visualizer
| -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): | |||
| 176 | return "GUI" | 176 | return "GUI" |
| 177 | 177 | ||
| 178 | def createAudioVisualization(self, input, output): | 178 | def createAudioVisualization(self, input, output): |
| 179 | if not self.core.selectedComponents: | ||
| 180 | print("No components selected. Adding a default visualizer.") | ||
| 181 | time.sleep(1) | ||
| 182 | self.core.insertComponent(0, 0, self) | ||
| 179 | self.core.selectedComponents = list( | 183 | self.core.selectedComponents = list( |
| 180 | reversed(self.core.selectedComponents)) | 184 | reversed(self.core.selectedComponents)) |
| 181 | self.core.componentListChanged() | 185 | self.core.componentListChanged() |
