Save models list after changing a model name

Resolves #1079
This commit is contained in:
Raphael Coeffic
2021-11-22 13:23:28 +01:00
committed by Raphael Coeffic
parent 9fffb182d7
commit 8c688bb6a4
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -1313,6 +1313,7 @@ void ModelSetupPage::build(FormWindow * window)
auto model = modelslist.getCurrentModel(); auto model = modelslist.getCurrentModel();
if (model) { if (model) {
model->setModelName(g_model.header.name); model->setModelName(g_model.header.name);
modelslist.save();
} }
SET_DIRTY(); SET_DIRTY();
}); });
-1
View File
@@ -83,7 +83,6 @@ void ModelCell::setModelName(char* name, uint8_t len)
if (tmp != nullptr) if (tmp != nullptr)
*tmp = 0; *tmp = 0;
} }
} }
void ModelCell::setModelId(uint8_t moduleIdx, uint8_t id) void ModelCell::setModelId(uint8_t moduleIdx, uint8_t id)