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:
Nick Johnson 2021-03-11 15:46:31 -06:00 committed by Andreas Kling
parent 8f6894d250
commit e17752fc91
Notes: sideshowbarker 2024-07-18 21:09:17 +09:00

View file

@ -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;
};
}