From 8a4bb581a2353936dad90c8027bbd08579535dcf Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Thu, 12 Aug 2021 17:12:42 +0200 Subject: [PATCH] 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. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 19d9de55a8..2a9abc29b1 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -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 HackStudioWidget::create_switch_to_next_editor_action()