Skip to content

Commit

Permalink
[cli] Run sync even if users selects to not setup auto sync
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed May 30, 2020
1 parent fb2af2b commit d03701b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion legendary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,10 @@ def egs_sync(self, args):
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()
Expand Down

0 comments on commit d03701b

Please sign in to comment.