diff --git a/src/app/core/labeling.h b/src/app/core/labeling.h index feeeafcf..95787bdf 100644 --- a/src/app/core/labeling.h +++ b/src/app/core/labeling.h @@ -21,10 +21,7 @@ namespace core { static constexpr absl::string_view kDefaultTypes[] = { "Dungeon Names", "Dungeon Room Names", "Overworld Map Names"}; -class ResourceLabelManager { - public: - ResourceLabelManager() = default; - +struct ResourceLabelManager { bool LoadLabels(const std::string& filename); bool SaveLabels(); void DisplayLabels(bool* p_open); @@ -38,7 +35,6 @@ class ResourceLabelManager { std::string CreateOrGetLabel(const std::string& type, const std::string& key, const absl::string_view& defaultValue); - private: bool labels_loaded_ = false; std::string filename_; struct ResourceType { diff --git a/src/app/editor/master_editor.cc b/src/app/editor/master_editor.cc index ddebb592..3f7dd4e5 100644 --- a/src/app/editor/master_editor.cc +++ b/src/app/editor/master_editor.cc @@ -717,6 +717,9 @@ void MasterEditor::DrawViewMenu() { if (show_resource_label_manager) { rom()->resource_label()->DisplayLabels(&show_resource_label_manager); + if (current_project_.project_opened_) { + current_project_.labels_filename_ = rom()->resource_label()->filename_; + } } if (BeginMenu("View")) {