From fc56bf015cd8d29c87af504c23b85fe8048ef5dc Mon Sep 17 00:00:00 2001 From: Simon <50021001+simon-knuth@users.noreply.github.com> Date: Fri, 3 Dec 2021 19:51:49 +0100 Subject: [PATCH] Release preparation --- Scanner/ViewModels/ShellViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scanner/ViewModels/ShellViewModel.cs b/Scanner/ViewModels/ShellViewModel.cs index f96e1858..788192ec 100644 --- a/Scanner/ViewModels/ShellViewModel.cs +++ b/Scanner/ViewModels/ShellViewModel.cs @@ -2,6 +2,7 @@ using Microsoft.Toolkit.Mvvm.DependencyInjection; using Microsoft.Toolkit.Mvvm.Input; using Microsoft.Toolkit.Mvvm.Messaging; +using Microsoft.Toolkit.Uwp.Helpers; using Scanner.Services; using Scanner.Services.Messenger; using System; @@ -302,8 +303,8 @@ private void ViewLoaded() if ((bool)SettingsService.GetSetting(AppSetting.SetupCompleted) == true && (bool)SettingsService.GetSetting(AppSetting.IsFirstAppLaunchEver) == false && (bool)SettingsService.GetSetting(AppSetting.IsFirstAppLaunchWithThisVersion) == true - && (string)SettingsService.GetSetting(AppSetting.LastKnownVersion) != "Version 3.0.0.0" - && (string)SettingsService.GetSetting(AppSetting.LastKnownVersion) != "Version 3.0.1.0") + && SystemInformation.Instance.PreviousVersionInstalled.ToFormattedString() != "3.0.0.0" + && SystemInformation.Instance.PreviousVersionInstalled.ToFormattedString() != "3.0.1.0") { ChangelogRequested?.Invoke(this, EventArgs.Empty); }