fix: [companion] Show cause of error if unable to read from radio, scan MODELS dir if models.yml missing

Fallback to model file scanning if models.yml cannot be read
This commit is contained in:
Peter Feerick
2022-01-10 10:13:40 +10:00
committed by GitHub
4 changed files with 86 additions and 34 deletions
+1
View File
@@ -671,6 +671,7 @@ void TreeModel::refresh()
defaultCategoryItem = rootItem->appendChild(0, -1);
/*: Translators do NOT use accent for this, this is the default category name on Horus. */
defaultCategoryItem->setData(0, tr("Models"));
radioData->categories.push_back(qPrintable(tr("Models")));
}
categoryItem = defaultCategoryItem;
}