Patch .bin filename to .yml

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:11 +01:00
parent 7e8e5bf554
commit e56e769d27
4 changed files with 23 additions and 4 deletions
+5 -3
View File
@@ -316,9 +316,11 @@ bool CategorizedStorageFormat::writeYaml(const RadioData & radioData)
QString modelFilename;
if (hasCategories) {
modelFilename = QString("MODELS/%1").arg(model.filename);
modelFiles.push_back({std::string(model.filename),
std::string(model.name), model.category});
std::string ymlFilename = patchFilenameToYaml(model.filename);
modelFilename =
QString("MODELS/%1").arg(QString::fromStdString(ymlFilename));
modelFiles.push_back(
{ymlFilename, std::string(model.name), model.category});
} else {
modelFilename = QString("MODELS/model%1.yml")
.arg(model.modelIndex, 2, 10, QLatin1Char('0'));