Skip to content

Commit 7501588

Browse files
committed
enhance: quit application after main window has been closed
Signed-off-by: leo <[email protected]>
1 parent 80aead3 commit 7501588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App.axaml.cs

+1
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ private void TryLaunchAsNormal(IClassicDesktopStyleApplicationLifetime desktop)
552552

553553
_launcher = new ViewModels.Launcher(startupRepo);
554554
desktop.MainWindow = new Views.Launcher() { DataContext = _launcher };
555+
desktop.ShutdownMode = ShutdownMode.OnMainWindowClose;
555556

556557
#if !DISABLE_UPDATE_DETECTION
557558
if (pref.ShouldCheck4UpdateOnStartup())

0 commit comments

Comments
 (0)