1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

Terminal: Close find & settings windows on application exit

Since the find & settings windows are not children of the main window,
they stayed open after exiting the application.
This commit is contained in:
Marcus Nilsson 2021-06-02 12:28:52 +02:00 committed by Andreas Kling
parent b5778675a5
commit 734bd9841a

View file

@ -393,6 +393,13 @@ int main(int argc, char** argv)
window->set_menubar(menubar);
window->on_close = [&]() {
if (find_window)
find_window->close();
if (settings_window)
settings_window->close();
};
if (unveil("/res", "r") < 0) {
perror("unveil");
return 1;