mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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
|
@ -174,7 +174,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
};
|
||||
Assistant::Database db { app_state, providers };
|
||||
|
||||
auto container = TRY(window->set_main_widget<GUI::Frame>());
|
||||
auto container = window->set_main_widget<GUI::Frame>();
|
||||
container->set_fill_with_background_color(true);
|
||||
container->set_frame_style(Gfx::FrameStyle::Window);
|
||||
container->set_layout<GUI::VerticalBoxLayout>(8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue