Przeglądaj źródła

HackStudio: Update the window title after changing a file name

This is a very similar fix as the previous commit, but here it's
due to my oversight when I was adding an 'Save as..' feature.
Karol Kosek 4 lat temu
rodzic
commit
947b61c1de

+ 2 - 0
Userland/DevTools/HackStudio/HackStudioWidget.cpp

@@ -629,6 +629,8 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_save_as_action()
         auto new_project_file = m_project->get_file(save_path.value());
         auto new_project_file = m_project->get_file(save_path.value());
         m_open_files.set(save_path.value(), *new_project_file);
         m_open_files.set(save_path.value(), *new_project_file);
         m_open_files_vector.append(save_path.value());
         m_open_files_vector.append(save_path.value());
+
+        update_window_title();
     });
     });
 }
 }