mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
FontEditor: Close preview window when the main window is closed
This commit is contained in:
parent
aa180c821d
commit
cfc5df27f0
Notes:
sideshowbarker
2024-07-18 03:12:05 +09:00
Author: https://github.com/GalHorowitz
Commit: cfc5df27f0
Pull-request: https://github.com/SerenityOS/serenity/pull/10307
Reviewed-by: https://github.com/krkk
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static const char* pangrams[s_pangram_count] = {
|
|||
|
||||
static RefPtr<GUI::Window> create_font_preview_window(FontEditorWidget& editor)
|
||||
{
|
||||
auto window = GUI::Window::construct();
|
||||
auto window = GUI::Window::construct(&editor);
|
||||
window->set_window_type(GUI::WindowType::ToolWindow);
|
||||
window->set_title("Preview");
|
||||
window->resize(400, 150);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue