Re-add update check on startup

This commit is contained in:
Peter Kirmeier 2022-11-13 16:34:39 +01:00
parent 55a84d40b0
commit 92e61ace23
2 changed files with 3 additions and 7 deletions

View file

@ -7,7 +7,6 @@
namespace SystemTrayMenu
{
using System;
using System.Threading;
using System.Windows;
using System.Windows.Threading;
using Microsoft.Win32;
@ -45,11 +44,9 @@ namespace SystemTrayMenu
if (Settings.Default.CheckForUpdates)
{
#if TODO // WPF: Creating the dialog window must be called on STA thread
new Thread((obj) => GitHubUpdate.ActivateNewVersionFormOrCheckForUpdates(
showWhenUpToDate: false))
.Start();
#endif
Dispatcher.InvokeAsync(
() => GitHubUpdate.ActivateNewVersionFormOrCheckForUpdates(showWhenUpToDate: false),
DispatcherPriority.ApplicationIdle);
}
}

View file

@ -9,7 +9,6 @@ namespace SystemTrayMenu.Helper
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using SystemTrayMenu.Helper.Updater;
using SystemTrayMenu.UserInterface;
using SystemTrayMenu.Utilities;