@@ -97,13 +97,12 @@ bool YamlFormat::load(RadioData & radioData)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*model.category = 0;*/
|
|
||||||
model.modelIndex = modelIdx;
|
model.modelIndex = modelIdx;
|
||||||
strncpy(model.filename, qPrintable(filename), sizeof(model.filename) - 1);
|
|
||||||
model.used = true;
|
model.used = true;
|
||||||
|
|
||||||
strncpy(radioData.generalSettings.currModelFilename, qPrintable(filename), sizeof(radioData.generalSettings.currModelFilename) - 1);
|
|
||||||
radioData.generalSettings.currModelIndex = modelIdx;
|
radioData.generalSettings.currModelIndex = modelIdx;
|
||||||
|
radioData.fixModelFilenames();
|
||||||
|
|
||||||
// without knowing the radio this model came from the old to new radio conversion can cause more issues than it tries to solve
|
// without knowing the radio this model came from the old to new radio conversion can cause more issues than it tries to solve
|
||||||
// so leave fixing incompatibilities to the user
|
// so leave fixing incompatibilities to the user
|
||||||
radioData.generalSettings.variant = getCurrentBoard();
|
radioData.generalSettings.variant = getCurrentBoard();
|
||||||
|
|||||||
Reference in New Issue
Block a user