Implement auto-update via Onova

This commit is contained in:
Alexey Golub 2018-02-25 17:00:44 +02:00
parent 7bfd645e8e
commit 63c835df88
11 changed files with 187 additions and 22 deletions

View file

@ -28,9 +28,7 @@ namespace DiscordChatExporter.Gui
SimpleIoc.Default.Register<IExportService, ExportService>();
SimpleIoc.Default.Register<IMessageGroupService, MessageGroupService>();
SimpleIoc.Default.Register<ISettingsService, SettingsService>();
// Load settings
Resolve<ISettingsService>().Load();
SimpleIoc.Default.Register<IUpdateService, UpdateService>();
// View models
SimpleIoc.Default.Register<IErrorViewModel, ErrorViewModel>(true);
@ -42,8 +40,6 @@ namespace DiscordChatExporter.Gui
public void Cleanup()
{
// Save settings
ServiceLocator.Current.GetInstance<ISettingsService>().Save();
}
}
}