mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Run sync even if users selects to not setup auto sync
This commit is contained in:
parent
fb2af2b17a
commit
d03701b3f7
|
@ -844,7 +844,10 @@ class LegendaryCLI:
|
||||||
print('\nChecking automatic sync...')
|
print('\nChecking automatic sync...')
|
||||||
if not self.core.egl_sync_enabled and not args.one_shot:
|
if not self.core.egl_sync_enabled and not args.one_shot:
|
||||||
if not args.enable_sync:
|
if not args.enable_sync:
|
||||||
args.enable_sync = args.yes or get_boolean_choice('Enable automatic synchronization?')
|
choice = get_boolean_choice('Enable automatic synchronization?')
|
||||||
|
if not choice: # 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))
|
self.core.lgd.config.set('Legendary', 'egl_sync', str(args.enable_sync))
|
||||||
else:
|
else:
|
||||||
self.core.egl_sync()
|
self.core.egl_sync()
|
||||||
|
|
Loading…
Reference in a new issue