fix(cpn): Preserve sort order and selected labels (#3580)

* fix(cpn): read/write models Sort Order (based on work by dlktdr)

* fix(cpn): read and write labels and selected
This commit is contained in:
Neil Horne
2023-05-23 13:41:41 +10:00
committed by GitHub
parent 48e5d141aa
commit ad5d8e190e
6 changed files with 96 additions and 34 deletions
@@ -37,7 +37,8 @@ struct EtxModelMetadata {
typedef std::list<EtxModelMetadata> EtxModelfiles;
bool loadLabelsListFromYaml(QStringList& labels,
bool loadLabelsListFromYaml(RadioData::ModelLabels& labels,
int& sortOrder,
EtxModelfiles& modelFiles,
const QByteArray& data);