1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:37:35 +00:00

ClipboardHistory: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 12:12:44 +01:00 committed by Andreas Kling
parent 3ca72831d1
commit 3e4e055c76

View file

@ -26,7 +26,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
auto app_icon = GUI::Icon::default_icon("edit-copy");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("edit-copy"));
auto main_window = TRY(GUI::Window::try_create());
main_window->set_title("Clipboard history");