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:
parent
b480f02117
commit
f80e19086e
1 changed files with 1 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue