mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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: https://github.com/SerenityOS/serenity/commit/0a061d4314e
@ -19,7 +19,10 @@ GLabel::~GLabel()
|
||||
|
||||
void GLabel::set_icon(GraphicsBitmap* icon)
|
||||
{
|
||||
if (m_icon == icon)
|
||||
return;
|
||||
m_icon = icon;
|
||||
update();
|
||||
}
|
||||
|
||||
void GLabel::set_text(const StringView& text)
|
||||
|
Loading…
Reference in New Issue
Block a user