Skip to content

Commit 3cc463d

Browse files
committed
enhance: use Environment.Exit(0) instead of IClassicDesktopStyleApplicationLifetime.Shutdown to stop for non-first instance of SourceGit
Signed-off-by: leo <[email protected]>
1 parent 33a463c commit 3cc463d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public override void OnFrameworkInitializationCompleted()
351351
if (!_ipcChannel.IsFirstInstance)
352352
{
353353
_ipcChannel.SendToFirstInstance(desktop.Args is { Length: 1 } ? desktop.Args[0] : string.Empty);
354-
Quit(0);
354+
Environment.Exit(0);
355355
}
356356
else
357357
{

0 commit comments

Comments
 (0)