aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortassaron2022-05-09 22:32:51 -0400
committertassaron2022-05-09 22:32:51 -0400
commitaee06dcbdad4021e3e1a26bfba731e1efc710e64 (patch)
tree74ba562dbc4df43a28c4b9e4f6b8469bd0154541 /src
parente1cb15c639b950014bfce24ad292491292c50b0f (diff)
no components on commandline adds a default visualizer
Diffstat (limited to 'src')
-rw-r--r--src/command.py4
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()