aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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()