mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
Welcome: Use fallible try_create_default_icon()
This commit is contained in:
parent
9fe5cadcc8
commit
a6b8ac10f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue