diff --git a/Services/NotificationServer/NotificationWindow.cpp b/Services/NotificationServer/NotificationWindow.cpp index 8f4a1c8b55..35c31e3699 100644 --- a/Services/NotificationServer/NotificationWindow.cpp +++ b/Services/NotificationServer/NotificationWindow.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -90,10 +91,8 @@ NotificationWindow::NotificationWindow(const String& text, const String& title, widget.layout()->set_spacing(6); if (icon.is_valid()) { - auto& icon_label = widget.add(); - icon_label.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed); - icon_label.set_preferred_size(32, 32); - icon_label.set_icon(icon.bitmap()); + auto& image = widget.add(); + image.set_bitmap(icon.bitmap()); } auto& left_container = widget.add();