1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 19:47:42 +00:00

GLabel: Repaint immediately on icon change

This commit is contained in:
Andreas Kling 2019-08-09 23:48:44 +02:00
parent db6ed8eebd
commit 0a061d4314

View file

@ -19,7 +19,10 @@ GLabel::~GLabel()
void GLabel::set_icon(GraphicsBitmap* icon) void GLabel::set_icon(GraphicsBitmap* icon)
{ {
if (m_icon == icon)
return;
m_icon = icon; m_icon = icon;
update();
} }
void GLabel::set_text(const StringView& text) void GLabel::set_text(const StringView& text)