mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
[Companion] Conversions from Taranis to Horus (default category added)
This commit is contained in:
parent
83380d288c
commit
a412992783
1 changed files with 7 additions and 0 deletions
|
@ -39,4 +39,11 @@ void RadioData::convert(Firmware * before, Firmware * after)
|
|||
for (unsigned i=0; i<models.size(); i++) {
|
||||
models[i].convert(before, after);
|
||||
}
|
||||
|
||||
if (categories.size() == 0) {
|
||||
categories.push_back(CategoryData(QObject::tr("Models").toStdString().c_str()));
|
||||
for (unsigned i=0; i<models.size(); i++) {
|
||||
models[i].category = 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue