mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
Regression fix
This commit is contained in:
parent
ed155dc37a
commit
c758ac75dd
1 changed files with 4 additions and 0 deletions
|
@ -292,6 +292,10 @@ def main(args, device_args):
|
|||
key_events = io.get_key_events(wnd_name)
|
||||
key, chr_key, ctrl_pressed, alt_pressed, shift_pressed = key_events[-1] if len(key_events) > 0 else (0,0,False,False,False)
|
||||
|
||||
#Scheduling bug possibly? Only needed on linux.....
|
||||
if not is_showing:
|
||||
time.sleep(0.1)
|
||||
|
||||
if key == ord('\n') or key == ord('\r'):
|
||||
s2c.put ( {'op': 'close'} )
|
||||
elif key == ord('s'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue