mirror of
https://github.com/ckaczor/WorldClockStatusWindow.git
synced 2026-01-14 01:25:44 -05:00
Fix async
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user