fix: Write model name into models.yml when duplicating model (#2224)

* Update model name in the models.yml file (#2214)

* Fix the length of the name.
This commit is contained in:
eshifri
2022-08-26 12:47:53 +10:00
committed by GitHub
parent e97f23a305
commit 4b747caff9
4 changed files with 13 additions and 10 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ public:
explicit ModelsCategory(const char * name, uint8_t len);
~ModelsCategory();
ModelCell * addModel(const char * name);
ModelCell* addModel(const char* fileName, const char* modelName = nullptr);
void removeModel(ModelCell * model);
void moveModel(ModelCell * model, int8_t step);
@@ -161,7 +161,7 @@ public:
ModelsCategory * createCategory(const char * name, bool save=true);
void removeCategory(ModelsCategory * category);
ModelCell * addModel(ModelsCategory * category, const char * name, bool save=true);
ModelCell * addModel(ModelsCategory * category, const char * name, const char* modelName = nullptr, bool save=true);
void removeModel(ModelsCategory * category, ModelCell * model);
void moveModel(ModelsCategory * category, ModelCell * model, int8_t step);
void moveModel(ModelCell * model, ModelsCategory * previous_category, ModelsCategory * new_category);