mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +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");
|
auto& close_button = *widget->find_descendant_of_type_named<GUI::Button>("close_button");
|
||||||
close_button.on_click = [&](auto) {
|
close_button.on_click = [&](auto) {
|
||||||
if (unlink_on_exit)
|
window->close();
|
||||||
unlink_coredump(coredump_path);
|
|
||||||
app->quit();
|
|
||||||
};
|
};
|
||||||
close_button.set_focus(true);
|
close_button.set_focus(true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue