From beef7a97e23393a96d4894623ab3baa68a991953 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Thu, 26 Sep 2024 19:46:43 -0400 Subject: [PATCH] Fix version number? --- .github/workflows/main.yml | 2 +- WindowSource.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f20f23d..bf7d055 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,4 +25,4 @@ jobs: dotnet tool install -g vpk vpk download github --repoUrl https://github.com/ckaczor/WorldClockStatusWindow vpk pack -u MyUniqueIdentifier -v ${{ steps.get-version.outputs.version }} -p publish - vpk upload github --repoUrl https://github.com/ckaczor/WorldClockStatusWindow --publish --releaseName "WorldClockStatusWindow ${{ steps.get-version.outputs.version }}" --tag v${{ steps.get-version.outputs.version }} \ No newline at end of file + vpk upload github --repoUrl https://github.com/ckaczor/WorldClockStatusWindow --publish --releaseName "WorldClockStatusWindow 1.0.${{ github.event.release.tag_name }}" --tag v1.0.${{ github.event.release.tag_name }} \ No newline at end of file diff --git a/WindowSource.cs b/WindowSource.cs index c9ab967..ee7ba67 100644 --- a/WindowSource.cs +++ b/WindowSource.cs @@ -45,18 +45,18 @@ internal class WindowSource : IWindowSource, IDisposable if (!updateManager.IsInstalled) return false; - _dispatcher.InvokeAsync(() => _floatingStatusWindow.SetText("Checking for update...")); + _dispatcher.Invoke(() => _floatingStatusWindow.SetText("Checking for update...")); var newVersion = await updateManager.CheckForUpdatesAsync(); if (newVersion == null) return false; - _dispatcher.InvokeAsync(() => _floatingStatusWindow.SetText("Downloading update...")); + _dispatcher.Invoke(() => _floatingStatusWindow.SetText("Downloading update...")); await updateManager.DownloadUpdatesAsync(newVersion); - _dispatcher.InvokeAsync(() => _floatingStatusWindow.SetText("Installing update...")); + _dispatcher.Invoke(() => _floatingStatusWindow.SetText("Installing update...")); updateManager.ApplyUpdatesAndRestart(newVersion); } @@ -119,7 +119,7 @@ internal class WindowSource : IWindowSource, IDisposable text.AppendLine(); text.Append($"Version: {Assembly.GetEntryAssembly()!.GetName().Version!.ToString()}"); - _dispatcher.InvokeAsync(() => _floatingStatusWindow.SetText(text.ToString())); + _dispatcher.Invoke(() => _floatingStatusWindow.SetText(text.ToString())); } public void Dispose()