mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 05:10:25 +08:00
fix: reset desktop.ShutdownMode to ShutdownMode.OnExplicitShutdown before calling desktop.Shutdown manually (#2129)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -387,6 +387,7 @@ namespace SourceGit
|
||||
{
|
||||
if (Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
desktop.ShutdownMode = ShutdownMode.OnExplicitShutdown;
|
||||
desktop.MainWindow?.Close();
|
||||
desktop.Shutdown(exitCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user