diff options
| author | tassaron | 2022-05-02 20:16:47 -0400 |
|---|---|---|
| committer | tassaron | 2022-05-02 20:16:47 -0400 |
| commit | 7f97e8f155c4a51517670c0dc7574f88afeffe6c (patch) | |
| tree | a0a672ead97d3cf6ac9fecba18c522b12531fd92 /src/video_thread.py | |
| parent | 8293328d66a27245e1c90e19b1fbc004ee8ef033 (diff) | |
add commandline option to disable preview during export
the weird use of type() is to avoid restructuring the code at this time. I will refactor this in a different pull request
Diffstat (limited to 'src/video_thread.py')
| -rw-r--r-- | src/video_thread.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_thread.py b/src/video_thread.py index 0895547..27379ef 100644 --- a/src/video_thread.py +++ b/src/video_thread.py @@ -44,6 +44,7 @@ class Worker(QtCore.QObject): self.settings = parent.settings self.modules = parent.core.modules parent.createVideo.connect(self.createVideo) + self.previewEnabled = type(parent.core).previewEnabled #self.parent = parent self.components = components @@ -327,7 +328,7 @@ class Worker(QtCore.QObject): break # Update live preview - if time.time() - self.lastPreview > 0.5: + if self.previewEnabled and time.time() - self.lastPreview > 0.5: self.showPreview(frameBuffer[audioI]) try: |
