From 6d4d33c82f0a6989f09fdaac73f06a584c069b06 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Mon, 30 Sep 2024 18:18:59 -0400 Subject: [PATCH] Tweak async and deploy debug for now so debugger can be attached --- .github/workflows/main.yml | 2 +- SettingsWindow/UpdateSettingsPanel.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c59b2d2..54f0b32 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: dotnet-version: 8.0.x - name: Publish Application - run: dotnet publish WorldClockStatusWindow.csproj -c Release -o publish + run: dotnet publish WorldClockStatusWindow.csproj -c Debug -o publish - name: Create Velopack Release run: | diff --git a/SettingsWindow/UpdateSettingsPanel.xaml.cs b/SettingsWindow/UpdateSettingsPanel.xaml.cs index 6b1ef07..4455e2c 100644 --- a/SettingsWindow/UpdateSettingsPanel.xaml.cs +++ b/SettingsWindow/UpdateSettingsPanel.xaml.cs @@ -13,13 +13,13 @@ public partial class UpdateSettingsPanel public override string CategoryName => Properties.Resources.optionCategoryUpdate; - private void HandleCheckVersionNowButtonClick(object sender, RoutedEventArgs e) + private async void HandleCheckVersionNowButtonClick(object sender, RoutedEventArgs e) { var cursor = Cursor; Cursor = Cursors.Wait; - UpdateCheck.DisplayUpdateInformation(true).Wait(); + await UpdateCheck.DisplayUpdateInformation(true); Cursor = cursor; }