mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
Welcome: Propagate errors using try_set_main_widget in main
This commit is contained in:
parent
f17bd66ecc
commit
1b42aff9b5
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->set_title("Welcome");
|
||||
window->set_minimum_size(480, 250);
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
window->set_main_widget<WelcomeWidget>();
|
||||
auto welcome_widget = TRY(window->try_set_main_widget<WelcomeWidget>());
|
||||
|
||||
window->show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue