1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

Chess: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 11:47:33 +01:00 committed by Andreas Kling
parent 21335ad720
commit 88ce05317f

View file

@ -29,7 +29,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio rpath wpath cpath recvfd sendfd thread proc exec"));
auto app_icon = GUI::Icon::default_icon("app-chess");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-chess"));
auto window = TRY(GUI::Window::try_create());
auto widget = TRY(window->try_set_main_widget<ChessWidget>());