Minesweeper: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 11:53:18 +01:00 committed by Andreas Kling
parent 421f91e4ca
commit c1820770bb
Notes: sideshowbarker 2024-07-17 22:37:52 +09:00

View file

@ -35,7 +35,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-minesweeper");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-minesweeper"));
auto window = TRY(GUI::Window::try_create());
window->set_resizable(false);