[cli] Run sync even if users selects to not setup auto sync

This commit is contained in:
derrod 2020-05-30 02:56:05 +02:00
parent fb2af2b17a
commit d03701b3f7

View file

@ -844,7 +844,10 @@ class LegendaryCLI:
print('\nChecking automatic sync...')
if not self.core.egl_sync_enabled and not args.one_shot:
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))
else:
self.core.egl_sync()