mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Fix -y/--yes for egl-sync auto
This commit is contained in:
parent
50d6eb02fa
commit
a0329a73a9
|
@ -892,10 +892,9 @@ class LegendaryCLI:
|
|||
print('\nChecking automatic sync...')
|
||||
if not self.core.egl_sync_enabled and not args.one_shot:
|
||||
if not args.enable_sync:
|
||||
choice = get_boolean_choice('Enable automatic synchronization?')
|
||||
if not choice: # if user chooses no, still run the sync once
|
||||
args.enable_sync = args.yes or get_boolean_choice('Enable automatic synchronization?')
|
||||
if not args.enable_sync: # if user chooses no, still run the sync once
|
||||
self.core.egl_sync()
|
||||
args.enable_sync = args.yes or choice
|
||||
self.core.lgd.config.set('Legendary', 'egl_sync', str(args.enable_sync))
|
||||
else:
|
||||
self.core.egl_sync()
|
||||
|
|
Loading…
Reference in a new issue