1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

Terminal: Open settings as a modal window

To prevent the settings window from getting orphaned when someone
closes the main window behind it.
This commit is contained in:
Tibor Nagy 2020-02-25 19:39:57 +01:00 committed by Andreas Kling
parent 6a892ea3a2
commit 3b8713a9df

View file

@ -132,6 +132,7 @@ RefPtr<GUI::Window> create_settings_window(TerminalWidget& terminal)
auto window = GUI::Window::construct();
window->set_title("Terminal Settings");
window->set_rect(50, 50, 200, 140);
window->set_modal(true);
auto settings = GUI::Widget::construct();
window->set_main_widget(settings);