1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

FontEditor: Simplify initialization by disabling widget callbacks

Reduces some complexity dealing with callback effects and fixes
redundant calls to update_title and erroneously set glyph widths.
This commit is contained in:
thankyouverycool 2021-09-21 17:24:09 -04:00 committed by Andreas Kling
parent 92fffc3abc
commit ca6cb6cec3
3 changed files with 22 additions and 26 deletions

View file

@ -24,7 +24,6 @@ void GlyphEditorWidget::initialize(Gfx::BitmapFont& mutable_font)
return;
m_font = mutable_font;
set_relative_rect({ 0, 0, preferred_width(), preferred_height() });
m_glyph = 0;
}
void GlyphEditorWidget::set_glyph(int glyph)