load labels from project file

This commit is contained in:
scawful
2024-07-13 19:20:02 -04:00
parent f0d8e595cb
commit b9ea84f581

View File

@@ -499,6 +499,13 @@ void MasterEditor::DrawFileMenu() {
if (status_.ok()) {
status_ = rom()->LoadFromFile(current_project_.rom_filename_);
}
if (status_.ok()) {
if (!rom()->resource_label()->LoadLabels(
current_project_.labels_filename_)) {
status_ = absl::InternalError(
"Could not load labels file, update your project file.");
}
}
}
if (MenuItem("Save Project")) {
// Save the current project