|
@@ -288,7 +288,6 @@ bool HackStudioWidget::open_file(const String& full_filename)
|
|
|
if (filename.starts_with(m_project->root_path()))
|
|
|
relative_file_path = filename.substring(m_project->root_path().length() + 1);
|
|
|
|
|
|
- window()->set_title(String::formatted("{} - {} - Hack Studio", relative_file_path, m_project->name()));
|
|
|
m_project_tree_view->update();
|
|
|
|
|
|
current_editor_wrapper().set_filename(filename);
|
|
@@ -826,6 +825,7 @@ Project& HackStudioWidget::project()
|
|
|
void HackStudioWidget::set_current_editor_wrapper(RefPtr<EditorWrapper> editor_wrapper)
|
|
|
{
|
|
|
m_current_editor_wrapper = editor_wrapper;
|
|
|
+ update_window_title();
|
|
|
}
|
|
|
|
|
|
void HackStudioWidget::configure_project_tree_view()
|
|
@@ -1194,4 +1194,9 @@ void HackStudioWidget::update_gml_preview()
|
|
|
m_gml_preview_widget->load_gml(gml_content);
|
|
|
}
|
|
|
|
|
|
+void HackStudioWidget::update_window_title()
|
|
|
+{
|
|
|
+ window()->set_title(String::formatted("{} - {} - Hack Studio", m_current_editor_wrapper->filename_label().text(), m_project->name()));
|
|
|
+}
|
|
|
+
|
|
|
}
|