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:
parent
db6ed8eebd
commit
0a061d4314
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue