1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

Notification: Prevent showing a closed window

If a notification was closed, the connection will now be dead. To
prevent inconsistencies between when a user closes a notification and
when an application closes an applicated, check if the notification has
been closed before allowing any action.
This commit is contained in:
Nick Johnson 2021-03-11 15:33:37 -06:00 committed by Andreas Kling
parent 0fd1e6f062
commit 147a2c4ca2
2 changed files with 18 additions and 1 deletions

View file

@ -60,6 +60,7 @@ private:
NonnullRefPtr<NotificationServerConnection> m_connection;
bool m_showing { false };
bool m_disposed { false };
};
}