mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Userland: Make Window::set_main_widget()
non-fallible
This commit is contained in:
parent
c9297126db
commit
3aa49f268c
120 changed files with 144 additions and 133 deletions
|
@ -86,7 +86,7 @@ CharacterMapWidget::CharacterMapWidget()
|
|||
m_find_glyphs_action = GUI::Action::create("&Find Glyphs...", { Mod_Ctrl, Key_F }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find.png"sv).release_value_but_fixme_should_propagate_errors(), [&](auto&) {
|
||||
if (m_find_window.is_null()) {
|
||||
m_find_window = GUI::Window::construct(window());
|
||||
auto search_widget = m_find_window->set_main_widget<CharacterSearchWidget>().release_value_but_fixme_should_propagate_errors();
|
||||
auto search_widget = m_find_window->set_main_widget<CharacterSearchWidget>();
|
||||
search_widget->on_character_selected = [&](auto code_point) {
|
||||
m_glyph_map->set_active_glyph(code_point);
|
||||
m_glyph_map->scroll_to_glyph(code_point);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue