1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

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

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