Welcome: Use fallible try_create_default_icon()

This commit is contained in:
thankyouverycool 2022-09-23 10:56:59 -04:00 committed by Ali Mohammad Pur
parent 9fe5cadcc8
commit a6b8ac10f7
Notes: sideshowbarker 2024-07-17 18:49:10 +09:00

View file

@ -25,7 +25,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::unveil("/tmp/user/%uid/portal/webcontent", "rw"));
TRY(Core::System::unveil("/bin/Help", "x"));
TRY(Core::System::unveil(nullptr, nullptr));
auto app_icon = GUI::Icon::default_icon("app-welcome"sv);
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-welcome"sv));
auto window = TRY(GUI::Window::try_create());
window->resize(480, 250);