mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
GLabel: Repaint immediately on icon change
This commit is contained in:
parent
db6ed8eebd
commit
0a061d4314
Notes:
sideshowbarker
2024-07-19 12:47:30 +09:00
Author: https://github.com/awesomekling
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