2 Commits

Author SHA1 Message Date
6d4d33c82f Tweak async and deploy debug for now so debugger can be attached 2024-09-30 18:18:59 -04:00
fe0b0895b4 Fix async 2024-09-30 18:12:00 -04:00
3 changed files with 5 additions and 4 deletions

View File

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

View File

@@ -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);
await UpdateCheck.DisplayUpdateInformation(true);
Cursor = cursor;
}

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;