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:
parent
21335ad720
commit
88ce05317f
1 changed files with 1 additions and 1 deletions
|
@ -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>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue