mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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:
parent
6a892ea3a2
commit
3b8713a9df
Notes:
sideshowbarker
2024-07-19 09:03:48 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/3b8713a9dfe Pull-request: https://github.com/SerenityOS/serenity/pull/1296
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue