mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
TextEditor: Show window after text_widget loads
This commit is contained in:
parent
8075ba5064
commit
1bcf3968f2
Notes:
sideshowbarker
2024-07-19 13:15:42 +09:00
Author: https://github.com/RyanGrieb Commit: https://github.com/SerenityOS/serenity/commit/1bcf3968f23 Pull-request: https://github.com/SerenityOS/serenity/pull/307 Reviewed-by: https://github.com/awesomekling ✅
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_should_exit_event_loop_on_close(true);
|
||||
window->show();
|
||||
window->set_icon_path("/res/icons/TextEditor16.png");
|
||||
|
||||
auto* text_widget = new TextEditorWidget();
|
||||
|
@ -18,5 +17,7 @@ int main(int argc, char** argv)
|
|||
if (argc >= 2)
|
||||
text_widget->open_sesame(argv[1]);
|
||||
|
||||
window->show();
|
||||
|
||||
return app.exec();
|
||||
}
|
Loading…
Add table
Reference in a new issue