mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Notification: Use on_close
on_close_request is not called at any point if close is explicitly called, so we must instead use on_close.
This commit is contained in:
parent
8f6894d250
commit
e17752fc91
Notes:
sideshowbarker
2024-07-18 21:09:17 +09:00
Author: https://github.com/Sylvyrfysh Commit: https://github.com/SerenityOS/serenity/commit/e17752fc919 Pull-request: https://github.com/SerenityOS/serenity/pull/5732 Reviewed-by: https://github.com/BenWiederhake
1 changed files with 1 additions and 2 deletions
|
@ -113,10 +113,9 @@ NotificationWindow::NotificationWindow(i32 client_id, const String& text, const
|
|||
right_container.set_fixed_width(36);
|
||||
right_container.set_layout<GUI::HorizontalBoxLayout>();
|
||||
|
||||
on_close_request = [this] {
|
||||
on_close = [this] {
|
||||
s_windows.remove(m_id);
|
||||
update_notification_window_locations();
|
||||
return CloseRequestDecision::Close;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue