Remove changelog notification

pull/1223/head
Tyrrrz 7 months ago
parent 5623c2ca34
commit 9b3421e8a5

@ -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() =>

@ -38,9 +38,6 @@ public partial class SettingsService()
[ObservableProperty]
private int _parallelLimit = 1;
[ObservableProperty]
private Version? _lastAppVersion;
[ObservableProperty]
private string? _lastToken;

@ -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)

Loading…
Cancel
Save