mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
CrashReporter: Factorize exiting behavior to window->close()
This commit is contained in:
parent
fef255ee22
commit
f14006637d
1 changed files with 1 additions and 3 deletions
|
@ -264,9 +264,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto& close_button = *widget->find_descendant_of_type_named<GUI::Button>("close_button");
|
||||
close_button.on_click = [&](auto) {
|
||||
if (unlink_on_exit)
|
||||
unlink_coredump(coredump_path);
|
||||
app->quit();
|
||||
window->close();
|
||||
};
|
||||
close_button.set_focus(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue