diff options
| author | Brianna Rainey | 2022-05-02 17:37:11 -0700 |
|---|---|---|
| committer | GitHub | 2022-05-02 17:37:11 -0700 |
| commit | b765295d9790c240473dbdccd5dc730f39c2a763 (patch) | |
| tree | af1776499661cbea87e65b03719fbe722391f23f /src/command.py | |
| parent | 4c5aa37aa6f41d909153a2b7d522db6d7582659a (diff) | |
| parent | 6c3410da0b7fc39a9bc613c208b6e6cd3d3c6ed2 (diff) | |
Merge pull request #71 from djfun/fix-70
Fix #70 - Crash when exporting video in GUI mode
Diffstat (limited to 'src/command.py')
| -rw-r--r-- | src/command.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/command.py b/src/command.py index bf7941a..6d76906 100644 --- a/src/command.py +++ b/src/command.py @@ -58,12 +58,16 @@ class Command(QtCore.QObject): ) self.parser.add_argument( '--test', action='store_true', - help='run tests, generate logfiles, then exit' + help='run tests and create a report full of debugging info' ) self.parser.add_argument( '--debug', action='store_true', help='create bigger logfiles while program is running' ) + self.parser.add_argument( + '--no-preview', action='store_true', + help='disable live preview during export in GUI mode' + ) # optional arguments self.parser.add_argument( @@ -140,6 +144,9 @@ class Command(QtCore.QObject): self.createAudioVisualisation(self.args.input, self.args.output) return "commandline" + elif self.args.no_preview: + core.Core.previewEnabled = False + elif 'help' not in sys.argv and self.args.projpath is None and '--debug' not in sys.argv: self.parser.print_help() quit(1) |
