1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

Notification: Use RefPtr for connection

With this RefPtr, we can initialize the connection to the
NotificationServer upon showing the notification. With this, we can
prevent double shows and updates or closes before showing.
This commit is contained in:
Nick Johnson 2021-03-12 11:53:51 -06:00 committed by Andreas Kling
parent e17752fc91
commit c7f00717c3
2 changed files with 11 additions and 47 deletions

View file

@ -74,9 +74,7 @@ private:
RefPtr<Gfx::Bitmap> m_icon;
bool m_icon_dirty;
NonnullRefPtr<NotificationServerConnection> m_connection;
bool m_showing { false };
bool m_disposed { false };
RefPtr<NotificationServerConnection> m_connection;
};
}