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:
parent
0fd1e6f062
commit
147a2c4ca2
2 changed files with 18 additions and 1 deletions
|
@ -60,6 +60,7 @@ private:
|
|||
|
||||
NonnullRefPtr<NotificationServerConnection> m_connection;
|
||||
bool m_showing { false };
|
||||
bool m_disposed { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue