diff options
| author | tassaron | 2017-06-25 10:36:32 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-25 10:36:32 -0400 |
| commit | a2838a0c3898f999e71f76e6e8d5691155438aea (patch) | |
| tree | c65d2d5c908f472389dee4d1e03f8fe88e88dacf /src/main.py | |
| parent | 45b55d8e2fbffceefc9a1cd50b9bdb3e7ec9da78 (diff) | |
disable some hotkeys while encoding, more friendly error messages
Diffstat (limited to 'src/main.py')
| -rw-r--r-- | src/main.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py index a8dd562..5b54fc7 100644 --- a/src/main.py +++ b/src/main.py @@ -7,6 +7,15 @@ import preview_thread import video_thread +def disableWhenEncoding(func): + def decorator(*args): + if args[0].encoding: + return + else: + return func(*args) + return decorator + + def LoadDefaultSettings(self): self.resolutions = [ '1920x1080', |
