Skip to content

Commit 5f1825d

Browse files
committed
fix: reset desktop.ShutdownMode to ShutdownMode.OnExplicitShutdown before calling desktop.Shutdown manually (#2129)
Signed-off-by: leo <longshuang@msn.cn>
1 parent d48afd1 commit 5f1825d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/App.axaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ public static void Quit(int exitCode)
387387
{
388388
if (Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
389389
{
390+
desktop.ShutdownMode = ShutdownMode.OnExplicitShutdown;
390391
desktop.MainWindow?.Close();
391392
desktop.Shutdown(exitCode);
392393
}

0 commit comments

Comments
 (0)