ModelGallery: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 12:20:27 +01:00 committed by Andreas Kling
parent 683077c894
commit b9579de2b5

View file

@ -22,7 +22,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
auto app_icon = GUI::Icon::default_icon("app-model-gallery");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-model-gallery"));
auto window = TRY(GUI::Window::try_create());
window->set_title("Model Gallery");