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

CrashReporter: Focus the "Close" button on startup

The most common action people will want to do with these windows is
to close them, so let's make that the first choice.
This commit is contained in:
Andreas Kling 2022-07-31 16:03:19 +02:00
parent b480f02117
commit f80e19086e

View file

@ -263,6 +263,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
unlink_coredump(coredump_path);
app->quit();
};
close_button.set_focus(true);
auto& debug_button = *widget->find_descendant_of_type_named<GUI::Button>("debug_button");
debug_button.set_icon(TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-hack-studio.png"sv)));