Inspector: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 12:23:57 +01:00 committed by Andreas Kling
parent d12359ff20
commit 64a5f990b1
Notes: sideshowbarker 2024-07-17 22:37:01 +09:00

View file

@ -48,7 +48,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
pid_t pid;
auto app = TRY(GUI::Application::try_create(arguments));
auto app_icon = GUI::Icon::default_icon("app-inspector");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-inspector"));
if (gui_mode) {
choose_pid:
auto process_chooser = TRY(GUI::ProcessChooser::try_create("Inspector", "Inspect", app_icon.bitmap_for_size(16)));