diff options
author | Astraeus- <Astraeus-@users.noreply.github.com> | 2021-12-18 12:19:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-18 23:36:59 +0100 |
commit | 683077c894d24316aa5496fc68950b4a5199f077 (patch) | |
tree | 6728a2ac234c9cbf3cf6c948e9d216d90202b4b2 /Userland/Demos/LibGfxScaleDemo | |
parent | 1c189dbba5b5c742077cb258aca6b97e20b51ebc (diff) | |
download | serenity-683077c894d24316aa5496fc68950b4a5199f077.zip |
LibGfxScaleDemo: Convert to try_create_default_icon
Diffstat (limited to 'Userland/Demos/LibGfxScaleDemo')
-rw-r--r-- | Userland/Demos/LibGfxScaleDemo/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/LibGfxScaleDemo/main.cpp b/Userland/Demos/LibGfxScaleDemo/main.cpp index da2136bc10..8a6f1fe948 100644 --- a/Userland/Demos/LibGfxScaleDemo/main.cpp +++ b/Userland/Demos/LibGfxScaleDemo/main.cpp @@ -120,7 +120,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto file_menu = TRY(window->try_add_menu("&File")); TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }))); - auto app_icon = GUI::Icon::default_icon("app-libgfx-demo"); + auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-libgfx-demo")); window->set_icon(app_icon.bitmap_for_size(16)); (void)TRY(window->try_set_main_widget<Canvas>()); window->show(); |