diff --git a/src/Starward/MyWindows/UpdateContentWindow.xaml.cs b/src/Starward/MyWindows/UpdateContentWindow.xaml.cs index d75f2f722..17b924500 100644 --- a/src/Starward/MyWindows/UpdateContentWindow.xaml.cs +++ b/src/Starward/MyWindows/UpdateContentWindow.xaml.cs @@ -112,7 +112,7 @@ private async Task LoadPageAsync() { if (NuGetVersion.TryParse(release.TagName, out var version)) { - if (version > lastVersion && version <= thisVersion) + if ((version > lastVersion || thisVersion < lastVersion) && version <= thisVersion) { if (!version.IsPrerelease || (thisVersion.IsPrerelease && version.IsPrerelease)) { diff --git a/src/Starward/Pages/MainPage.xaml.cs b/src/Starward/Pages/MainPage.xaml.cs index 96ff3bd4b..013e4f863 100644 --- a/src/Starward/Pages/MainPage.xaml.cs +++ b/src/Starward/Pages/MainPage.xaml.cs @@ -158,7 +158,7 @@ private async Task ShowRecentUpdateContentAsync() if (NuGetVersion.TryParse(AppConfig.AppVersion, out var version)) { NuGetVersion.TryParse(AppConfig.LastAppVersion, out var lastVersion); - if (version > lastVersion!) + if (version != lastVersion) { new UpdateContentWindow().Activate(); } diff --git a/src/Starward/Pages/Welcome/SelectLanguagePage.xaml b/src/Starward/Pages/Welcome/SelectLanguagePage.xaml index 32108ea20..67a3a9f30 100644 --- a/src/Starward/Pages/Welcome/SelectLanguagePage.xaml +++ b/src/Starward/Pages/Welcome/SelectLanguagePage.xaml @@ -20,17 +20,13 @@ - diff --git a/src/Starward/Starward.csproj b/src/Starward/Starward.csproj index c2ae3c16f..9825e1627 100644 --- a/src/Starward/Starward.csproj +++ b/src/Starward/Starward.csproj @@ -28,23 +28,23 @@ - - + + - + - - + + - + - - + +