mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47: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
|
@ -29,7 +29,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto window = TRY(Desktop::Screensaver::create_window("Tubes"sv, "app-tubes"sv));
|
||||
window->update();
|
||||
|
||||
auto tubes_widget = TRY(window->set_main_widget<Tubes>(refresh_rate));
|
||||
auto tubes_widget = window->set_main_widget<Tubes>(refresh_rate);
|
||||
tubes_widget->set_fill_with_background_color(false);
|
||||
tubes_widget->set_override_cursor(Gfx::StandardCursor::Hidden);
|
||||
window->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue