added sending closing event message to settings windows (#7)
Release / release (push) Successful in 5m7s
Release / release (push) Successful in 5m7s
Reviewed-on: #7 Co-authored-by: Aleksandr Neychev <alexnejchev73@gmail.com>
This commit was merged in pull request #7.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user