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
commit 88ce05317f
Notes: sideshowbarker 2024-07-17 22:38:00 +09:00

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