mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 21:45:07 +00:00
NotificationServer: Allow showing an icon in notifications
We currently use icon paths for this because I didn't want to deal with implementing icon bitmap sharing right now. In the future it would be better to post a bitmap somehow instead of a path.
This commit is contained in:
parent
3c29818048
commit
faedb763ca
7 changed files with 24 additions and 9 deletions
|
@ -55,7 +55,7 @@ OwnPtr<Messages::NotificationServer::GreetResponse> ClientConnection::handle(con
|
|||
|
||||
void ClientConnection::handle(const Messages::NotificationServer::ShowNotification& message)
|
||||
{
|
||||
auto window = NotificationWindow::construct(message.text(), message.title());
|
||||
auto window = NotificationWindow::construct(message.text(), message.title(), message.icon_path());
|
||||
window->show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue