From 7501588c9513bb3cfc7079e24473a218d31d1c24 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 30 Apr 2025 15:02:54 +0800 Subject: [PATCH] enhance: quit application after main window has been closed Signed-off-by: leo --- src/App.axaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index 822084dc..c54b616d 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -552,6 +552,7 @@ namespace SourceGit _launcher = new ViewModels.Launcher(startupRepo); desktop.MainWindow = new Views.Launcher() { DataContext = _launcher }; + desktop.ShutdownMode = ShutdownMode.OnMainWindowClose; #if !DISABLE_UPDATE_DETECTION if (pref.ShouldCheck4UpdateOnStartup())