mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +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
|
@ -40,7 +40,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto app_icon = GUI::Icon::default_icon("app-mail"sv);
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
||||
auto mail_widget = TRY(window->set_main_widget<MailWidget>());
|
||||
auto mail_widget = window->set_main_widget<MailWidget>();
|
||||
|
||||
window->set_title("Mail");
|
||||
window->resize(640, 400);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue