added check for updates + checking when closing

This commit is contained in:
iAmAsval
2020-08-07 12:17:22 +02:00
parent 15597adac4
commit 0a99506270
15 changed files with 30 additions and 76 deletions

View File

@@ -47,6 +47,7 @@ namespace FModel
private async void OnClosing(object sender, CancelEventArgs e)
{
Updater.CheckForUpdate();
Globals.gNotifier.Dispose();
Tasks.TokenSource?.Dispose();
DiscordIntegration.Dispose();
@@ -68,7 +69,6 @@ namespace FModel
FModel_MI_Assets_GoTo.ItemsSource = MenuItems.customGoTos;
FModel_AssetsPathTree.ItemsSource = SortedTreeviewVm.gameFilesPath.ChildrensView;
Updater.CheckForUpdate();
DebugHelper.WriteUserSettings();
Folders.CheckWatermarks();
@@ -266,6 +266,10 @@ namespace FModel
}
else { FWindows.GetOpenedWindow<Window>(Properties.Resources.AboutF).Focus(); }
}
private void FModel_MI_Help_Updates_Click(object sender, RoutedEventArgs e)
{
Updater.CheckForUpdate();
}
#endregion
#region TREEVIEW