mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user