1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 18:25:09 +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

@ -25,8 +25,8 @@ void GlyphMapWidget::initialize(Gfx::BitmapFont& mutable_font)
if (m_font == mutable_font)
return;
m_font = mutable_font;
m_selected_glyph = 0;
vertical_scrollbar().set_step(font().glyph_height() + m_vertical_spacing);
set_selected_glyph('A');
}
void GlyphMapWidget::resize_event(GUI::ResizeEvent& event)