Some refactor

pull/145/head
Oleksii Holub 6 years ago
parent 78b44aed19
commit b88a1f8b47

@ -56,12 +56,14 @@ namespace DiscordChatExporter.Gui.ViewModels
_exportService = exportService;
// Set title
var version = Assembly.GetExecutingAssembly().GetName().Version;
var version = Assembly.GetExecutingAssembly().GetName().Version.ToString(3);
DisplayName = $"DiscordChatExporter v{version}";
}
protected override async void OnViewLoaded()
{
base.OnViewLoaded();
// Load settings
_settingsService.Load();
@ -95,6 +97,8 @@ namespace DiscordChatExporter.Gui.ViewModels
protected override void OnClose()
{
base.OnClose();
// Save settings
_settingsService.Save();

Loading…
Cancel
Save