mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
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:
parent
e4f0795ae4
commit
8a4bb581a2
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue