HackStudio: Show text editor after starting the application

The user can now start typing text instead of creating a file first.

This also enables drag-and-dropping a file as soon as the application
starts.
This commit is contained in:
Karol Kosek 2021-08-12 17:12:42 +02:00 committed by Andreas Kling
parent e4f0795ae4
commit 8a4bb581a2
Notes: sideshowbarker 2024-07-19 17:19:52 +09:00

View file

@ -515,6 +515,7 @@ void HackStudioWidget::add_new_editor(GUI::Widget& parent)
wrapper->set_project_root(LexicalPath(m_project->root_path()));
wrapper->editor().on_cursor_change = [this] { update_statusbar(); };
wrapper->editor().on_change = [this] { update_gml_preview(); };
set_edit_mode(EditMode::Text);
}
NonnullRefPtr<GUI::Action> HackStudioWidget::create_switch_to_next_editor_action()