From 93799eb2318fea89bc066facda72ae74b4b8edbc Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 9 Feb 2023 17:27:14 +0200 Subject: [PATCH] Don't show update notification when launching the app for the first time --- DiscordChatExporter.Gui/ViewModels/RootViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs b/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs index e0b787f..4ed36db 100644 --- a/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs @@ -117,7 +117,7 @@ public class RootViewModel : Screen, IHandle, IDisposable } // App has just been updated, display changelog - if (_settingsService.LastAppVersion != App.Version) + if (_settingsService.LastAppVersion is not null && _settingsService.LastAppVersion != App.Version) { Notifications.Enqueue( $"Successfully updated to {App.Name} v{App.VersionString}",