mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-23 03:06:53 -04:00
Remove changelog notification
This commit is contained in:
parent
5623c2ca34
commit
9b3421e8a5
3 changed files with 0 additions and 21 deletions
|
@ -17,8 +17,6 @@ public static class Program
|
||||||
|
|
||||||
public static string ProjectUrl { get; } = "https://github.com/Tyrrrz/DiscordChatExporter";
|
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 string DocumentationUrl { get; } = ProjectUrl + "/tree/master/.docs";
|
||||||
|
|
||||||
public static AppBuilder BuildAvaloniaApp() =>
|
public static AppBuilder BuildAvaloniaApp() =>
|
||||||
|
|
|
@ -38,9 +38,6 @@ public partial class SettingsService()
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private int _parallelLimit = 1;
|
private int _parallelLimit = 1;
|
||||||
|
|
||||||
[ObservableProperty]
|
|
||||||
private Version? _lastAppVersion;
|
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
private string? _lastToken;
|
private string? _lastToken;
|
||||||
|
|
||||||
|
|
|
@ -93,22 +93,6 @@ public partial class MainViewModel(
|
||||||
|
|
||||||
await ShowUkraineSupportMessageAsync();
|
await ShowUkraineSupportMessageAsync();
|
||||||
await CheckForUpdatesAsync();
|
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)
|
protected override void Dispose(bool disposing)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue