From 3cc463d24b0d978496f7cd79d29d9ce69bad73bf Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 15 Apr 2025 16:24:48 +0800 Subject: [PATCH] enhance: use `Environment.Exit(0)` instead of `IClassicDesktopStyleApplicationLifetime.Shutdown` to stop for non-first instance of `SourceGit` Signed-off-by: leo --- src/App.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index 6779fd63..bd39e857 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -351,7 +351,7 @@ namespace SourceGit if (!_ipcChannel.IsFirstInstance) { _ipcChannel.SendToFirstInstance(desktop.Args is { Length: 1 } ? desktop.Args[0] : string.Empty); - Quit(0); + Environment.Exit(0); } else {