mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 10:29:23 +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:
parent
92fffc3abc
commit
ca6cb6cec3
Notes:
sideshowbarker
2024-07-18 03:33:50 +09:00
Author: https://github.com/thankyouverycool
Commit: ca6cb6cec3
Pull-request: https://github.com/SerenityOS/serenity/pull/10175
3 changed files with 22 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue