From aee06dcbdad4021e3e1a26bfba731e1efc710e64 Mon Sep 17 00:00:00 2001 From: tassaron Date: Mon, 9 May 2022 22:32:51 -0400 Subject: no components on commandline adds a default visualizer --- src/command.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3