GameOfLife: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 11:41:35 +01:00 committed by Andreas Kling
parent a15b86cd01
commit ff3272b60d
Notes: sideshowbarker 2024-07-17 22:38:12 +09:00

View File

@ -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));