From 3ce96134b53da494e7dab5ab1524c7f9e02ba86f Mon Sep 17 00:00:00 2001 From: Lennon Donaghy Date: Mon, 2 Aug 2021 19:58:51 +0100 Subject: [PATCH] HackStudio: Call update_gml_preview() to reset when opening new project --- 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 cbd47fba3d..080029b324 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -203,6 +203,7 @@ void HackStudioWidget::open_project(const String& root_path) m_todo_entries_widget->clear(); m_terminal_wrapper->clear_including_history(); stop_debugger_if_running(); + update_gml_preview(); } m_project = Project::open_with_root_path(root_path); VERIFY(m_project);