mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
GameOfLife: Convert to try_create_default_icon
This commit is contained in:
parent
a15b86cd01
commit
ff3272b60d
Notes:
sideshowbarker
2024-07-17 22:38:12 +09:00
Author: https://github.com/Astraeus- Commit: https://github.com/SerenityOS/serenity/commit/ff3272b60d1 Pull-request: https://github.com/SerenityOS/serenity/pull/11293
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…
Reference in a new issue