TextEditor: Show window after text_widget loads

This commit is contained in:
rhin123 2019-07-15 15:58:37 -05:00 committed by Andreas Kling
parent 8075ba5064
commit 1bcf3968f2
Notes: sideshowbarker 2024-07-19 13:15:42 +09:00

View file

@ -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();
}