added sending closing event message to settings windows
Pull request / build (pull_request) Successful in 39s

This commit is contained in:
2026-08-14 02:18:47 +05:00
parent 70b83a5fec
commit 81587988f2
7 changed files with 303 additions and 8 deletions
+8 -1
View File
@@ -125,5 +125,12 @@ internal sealed class Agent : IDisposable
private void OnOpenRequested(object? sender, EventArgs e) => SettingsLauncher.Open();
private void OnExitRequested(object? sender, EventArgs e) => _window.Quit();
// "Exit" means the application, not just the background half of it. A settings
// window left open would outlive the tray icon it was opened from, so it is asked
// to close first — it may be the very window the user is looking at
private void OnExitRequested(object? sender, EventArgs e)
{
SettingsCloseSignal.RequestClose();
_window.Quit();
}
}