mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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
Notes:
sideshowbarker
2024-07-19 17:19:52 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/8a4bb581a23 Pull-request: https://github.com/SerenityOS/serenity/pull/9361
|
@ -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…
Reference in a new issue