14 lines
		
	
	
		
			456 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			456 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MareSynchronos.MareConfiguration.Configurations;
 | |
| 
 | |
| namespace MareSynchronos.MareConfiguration;
 | |
| 
 | |
| public static class ConfigurationExtensions
 | |
| {
 | |
|     public static bool HasValidSetup(this MareConfig configuration)
 | |
|     {
 | |
|         return configuration.AcceptedAgreement && configuration.InitialScanComplete
 | |
|                     && !string.IsNullOrEmpty(configuration.CacheFolder)
 | |
|                     && Directory.Exists(configuration.CacheFolder);
 | |
|     }
 | |
| }
 | 
