mirror of
https://github.com/ckaczor/WorldClockStatusWindow.git
synced 2026-01-13 17:23:18 -05:00
Fix async
This commit is contained in:
@@ -19,7 +19,7 @@ public partial class UpdateSettingsPanel
|
||||
|
||||
Cursor = Cursors.Wait;
|
||||
|
||||
UpdateCheck.DisplayUpdateInformation(true);
|
||||
UpdateCheck.DisplayUpdateInformation(true).Wait();
|
||||
|
||||
Cursor = cursor;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using NuGet.Versioning;
|
||||
using Serilog;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using Velopack;
|
||||
using Velopack.Sources;
|
||||
@@ -16,7 +17,7 @@ namespace WorldClockStatusWindow
|
||||
|
||||
public static bool IsInstalled => UpdateManager.IsInstalled;
|
||||
|
||||
public static async void DisplayUpdateInformation(bool showIfCurrent)
|
||||
public static async Task DisplayUpdateInformation(bool showIfCurrent)
|
||||
{
|
||||
UpdateInfo newVersion = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user