mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
Welcome: Use fallible try_create_default_icon()
This commit is contained in:
parent
9fe5cadcc8
commit
a6b8ac10f7
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/a6b8ac10f7 Pull-request: https://github.com/SerenityOS/serenity/pull/15329 Reviewed-by: https://github.com/alimpfard
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…
Reference in a new issue