Fix async

This commit is contained in:
2024-09-30 18:12:00 -04:00
parent 978873a58a
commit fe0b0895b4
2 changed files with 3 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ public partial class UpdateSettingsPanel
Cursor = Cursors.Wait; Cursor = Cursors.Wait;
UpdateCheck.DisplayUpdateInformation(true); UpdateCheck.DisplayUpdateInformation(true).Wait();
Cursor = cursor; Cursor = cursor;
} }

View File

@@ -1,5 +1,6 @@
using NuGet.Versioning; using NuGet.Versioning;
using Serilog; using Serilog;
using System.Threading.Tasks;
using System.Windows; using System.Windows;
using Velopack; using Velopack;
using Velopack.Sources; using Velopack.Sources;
@@ -16,7 +17,7 @@ namespace WorldClockStatusWindow
public static bool IsInstalled => UpdateManager.IsInstalled; public static bool IsInstalled => UpdateManager.IsInstalled;
public static async void DisplayUpdateInformation(bool showIfCurrent) public static async Task DisplayUpdateInformation(bool showIfCurrent)
{ {
UpdateInfo newVersion = null; UpdateInfo newVersion = null;