enhance: quit application after main window has been closed

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-30 15:02:54 +08:00
parent 80aead3a17
commit 7501588c95
No known key found for this signature in database

View file

@ -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())