Extract app shutdown fallback into App.Shutdown (#1539)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
Copilot
2026-05-25 19:10:19 +03:00
committed by GitHub
parent 6258394fc0
commit 2aec84884b
2 changed files with 12 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Avalonia;
using DiscordChatExporter.Gui.Framework;
using DiscordChatExporter.Gui.Localization;
using DiscordChatExporter.Gui.Services;
@@ -88,8 +86,7 @@ public partial class MainViewModel(
{
updateService.FinalizeUpdate(true);
if (Application.Current?.ApplicationLifetime?.TryShutdown(2) != true)
Environment.Exit(2);
App.Shutdown(2);
}
);
}