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
Notes: sideshowbarker 2024-07-19 09:03:48 +09:00

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);