mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:25:07 +00:00
TextEditor: Show window after text_widget loads
This commit is contained in:
parent
8075ba5064
commit
1bcf3968f2
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,6 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
window->set_rect(20, 200, 640, 400);
|
window->set_rect(20, 200, 640, 400);
|
||||||
window->set_should_exit_event_loop_on_close(true);
|
window->set_should_exit_event_loop_on_close(true);
|
||||||
window->show();
|
|
||||||
window->set_icon_path("/res/icons/TextEditor16.png");
|
window->set_icon_path("/res/icons/TextEditor16.png");
|
||||||
|
|
||||||
auto* text_widget = new TextEditorWidget();
|
auto* text_widget = new TextEditorWidget();
|
||||||
|
@ -18,5 +17,7 @@ int main(int argc, char** argv)
|
||||||
if (argc >= 2)
|
if (argc >= 2)
|
||||||
text_widget->open_sesame(argv[1]);
|
text_widget->open_sesame(argv[1]);
|
||||||
|
|
||||||
|
window->show();
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue