From e17752fc919411c5761ca424fc71ab1f50690d72 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Thu, 11 Mar 2021 15:46:31 -0600 Subject: [PATCH] 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. --- Userland/Services/NotificationServer/NotificationWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp index f5df283cc4..d16af3bde4 100644 --- a/Userland/Services/NotificationServer/NotificationWindow.cpp +++ b/Userland/Services/NotificationServer/NotificationWindow.cpp @@ -113,10 +113,9 @@ NotificationWindow::NotificationWindow(i32 client_id, const String& text, const right_container.set_fixed_width(36); right_container.set_layout(); - on_close_request = [this] { + on_close = [this] { s_windows.remove(m_id); update_notification_window_locations(); - return CloseRequestDecision::Close; }; }