From d03701b3f7fe56598810c0590aae87beaf350d3b Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 30 May 2020 02:56:05 +0200 Subject: [PATCH] [cli] Run sync even if users selects to not setup auto sync --- legendary/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 7837db3..9de0fb5 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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()