mirror of
				https://github.com/derrod/legendary.git
				synced 2025-11-03 18:16:06 +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...')
 | 
			
		||||
        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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue