Fix GDPR questions and first configuration when the first invocation is calling a command.

This commit is contained in:
2019-01-19 15:14:54 +00:00
parent 3580dd1044
commit cc90fa4ef4
2 changed files with 23 additions and 17 deletions

View File

@@ -79,7 +79,7 @@ namespace DiscImageChef
if(!File.Exists(Settings.Settings.MasterDbPath))
{
masterDbUpdate = true;
UpdateCommand.DoUpdate(masterDbUpdate);
UpdateCommand.DoUpdate(true);
}
DicContext mctx = DicContext.Create(Settings.Settings.MasterDbPath);
@@ -88,7 +88,7 @@ namespace DiscImageChef
if((args.Length < 1 || args[0].ToLowerInvariant() != "gui") &&
Settings.Settings.Current.GdprCompliance < DicSettings.GdprLevel)
new ConfigureCommand(true).Invoke(args);
new ConfigureCommand(true, true).Invoke(args);
Statistics.LoadStats();
if(Settings.Settings.Current.Stats != null && Settings.Settings.Current.Stats.ShareStats)
Task.Run(() => { Statistics.SubmitStats(); });
@@ -111,7 +111,7 @@ namespace DiscImageChef
new BenchmarkCommand(),
new ChecksumCommand(),
new CompareCommand(),
new ConfigureCommand(false),
new ConfigureCommand(false, false),
new ConvertImageCommand(),
new CreateSidecarCommand(),
new DecodeCommand()