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

Userland: Make GUI::Window construction non-fallible

This commit is contained in:
Tim Ledbetter 2023-09-16 12:51:33 +01:00 committed by Andrew Kaster
parent b6b2c6f3e2
commit 0d7b13edac
55 changed files with 60 additions and 60 deletions

View file

@ -73,7 +73,7 @@ ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::try_create(GUI::Icon const& icon)
main_widget->m_preview_frame_widget = main_widget->find_descendant_of_type_named<GUI::Frame>("preview_frame");
main_widget->m_statusbar = main_widget->find_descendant_of_type_named<GUI::Statusbar>("statusbar");
main_widget->m_preview_window = TRY(GUI::Window::try_create(main_widget));
main_widget->m_preview_window = GUI::Window::construct(main_widget);
main_widget->m_preview_window->set_title("Preview - GML Playground");
main_widget->m_preview_window->set_icon(icon.bitmap_for_size(16));
main_widget->m_preview_window_widget = TRY(main_widget->m_preview_window->set_main_widget<GUI::Widget>());