From 9b3421e8a5daeb44a4624088c95ac45b0f0b8ed8 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 28 Apr 2024 03:06:02 +0300 Subject: [PATCH] Remove changelog notification --- DiscordChatExporter.Gui/Program.cs | 2 -- .../Services/SettingsService.cs | 3 --- .../ViewModels/MainViewModel.cs | 16 ---------------- 3 files changed, 21 deletions(-) diff --git a/DiscordChatExporter.Gui/Program.cs b/DiscordChatExporter.Gui/Program.cs index a8a494ad..cdc3491d 100644 --- a/DiscordChatExporter.Gui/Program.cs +++ b/DiscordChatExporter.Gui/Program.cs @@ -17,8 +17,6 @@ public static class Program public static string ProjectUrl { get; } = "https://github.com/Tyrrrz/DiscordChatExporter"; - public static string LatestReleaseUrl { get; } = ProjectUrl + "/releases/latest"; - public static string DocumentationUrl { get; } = ProjectUrl + "/tree/master/.docs"; public static AppBuilder BuildAvaloniaApp() => diff --git a/DiscordChatExporter.Gui/Services/SettingsService.cs b/DiscordChatExporter.Gui/Services/SettingsService.cs index 4294c4b6..a7c27c36 100644 --- a/DiscordChatExporter.Gui/Services/SettingsService.cs +++ b/DiscordChatExporter.Gui/Services/SettingsService.cs @@ -38,9 +38,6 @@ public partial class SettingsService() [ObservableProperty] private int _parallelLimit = 1; - [ObservableProperty] - private Version? _lastAppVersion; - [ObservableProperty] private string? _lastToken; diff --git a/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs b/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs index a5172724..c6e85ebd 100644 --- a/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/MainViewModel.cs @@ -93,22 +93,6 @@ public partial class MainViewModel( await ShowUkraineSupportMessageAsync(); await CheckForUpdatesAsync(); - - // App has just been updated, display the changelog - if ( - settingsService.LastAppVersion is not null - && settingsService.LastAppVersion != Program.Version - ) - { - snackbarManager.Notify( - $"Successfully updated to {Program.Name} v{Program.VersionString}", - "WHAT'S NEW", - () => ProcessEx.StartShellExecute(Program.LatestReleaseUrl) - ); - - settingsService.LastAppVersion = Program.Version; - settingsService.Save(); - } } protected override void Dispose(bool disposing)