mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
CrashReporter: Factorize exiting behavior to window->close()
This commit is contained in:
parent
fef255ee22
commit
f14006637d
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/f14006637d Pull-request: https://github.com/SerenityOS/serenity/pull/16378 Reviewed-by: https://github.com/AtkinsSJ ✅
|
@ -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…
Reference in a new issue