2 Commits

Author SHA1 Message Date
fe0b0895b4 Fix async 2024-09-30 18:12:00 -04:00
978873a58a Add hourglass cursor when checking for updates 2024-09-30 17:47:49 -04:00
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using System.Windows;
using System.Windows.Input;
using WorldClockStatusWindow.Properties;
namespace WorldClockStatusWindow.SettingsWindow;
@@ -14,7 +15,13 @@ public partial class UpdateSettingsPanel
private void HandleCheckVersionNowButtonClick(object sender, RoutedEventArgs e)
{
UpdateCheck.DisplayUpdateInformation(true);
var cursor = Cursor;
Cursor = Cursors.Wait;
UpdateCheck.DisplayUpdateInformation(true).Wait();
Cursor = cursor;
}
private void OnSaveSettings(object sender, RoutedEventArgs e)

View File

@@ -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;