mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
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:
parent
33a463ce59
commit
3cc463d24b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue