From a0329a73a92b3eb147840ae786a650ac3364473f Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 1 Jun 2020 08:18:13 +0200 Subject: [PATCH] [cli] Fix -y/--yes for egl-sync auto --- legendary/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index 5af08b5..07b0c21 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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()