1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07:34 +00:00

FontEditor: Set GlyphEditor glyph on initialization

Fixes GlyphEditor appearing blank on start and subsequent
re-initializations.
This commit is contained in:
thankyouverycool 2022-01-16 10:32:52 -05:00 committed by Andreas Kling
parent 8f60ea4470
commit c094bb60bc

View file

@ -490,8 +490,10 @@ void FontEditorWidget::initialize(String const& path, RefPtr<Gfx::BitmapFont>&&
}
deferred_invoke([this] {
auto glyph = m_glyph_map_widget->active_glyph();
m_glyph_map_widget->set_focus(true);
m_glyph_map_widget->scroll_to_glyph(m_glyph_map_widget->active_glyph());
m_glyph_map_widget->scroll_to_glyph(glyph);
m_glyph_editor_widget->set_glyph(glyph);
update_title();
});