mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
GameOfLife: Convert to try_create_default_icon
This commit is contained in:
parent
a15b86cd01
commit
ff3272b60d
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
auto app_icon = GUI::Icon::default_icon("app-gameoflife");
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-gameoflife"));
|
||||
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue