enhance: use Environment.Exit(0) instead of IClassicDesktopStyleApplicationLifetime.Shutdown to stop for non-first instance of SourceGit

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-15 16:24:48 +08:00
parent 33a463ce59
commit 3cc463d24b
No known key found for this signature in database

View file

@ -351,7 +351,7 @@ namespace SourceGit
if (!_ipcChannel.IsFirstInstance) if (!_ipcChannel.IsFirstInstance)
{ {
_ipcChannel.SendToFirstInstance(desktop.Args is { Length: 1 } ? desktop.Args[0] : string.Empty); _ipcChannel.SendToFirstInstance(desktop.Args is { Length: 1 } ? desktop.Args[0] : string.Empty);
Quit(0); Environment.Exit(0);
} }
else else
{ {