feat(cpn): Radio Type sorted alphabetically (#4273)

This commit is contained in:
Peter Feerick
2023-11-10 16:33:12 +10:00
committed by GitHub
parent fd69d5dbd9
commit 6a4a101ef0
2 changed files with 148 additions and 136 deletions
@@ -415,6 +415,15 @@ class Firmware
currentVariant = value;
}
static void sortRegisteredFirmwares()
{
std::sort(registeredFirmwares.begin(), registeredFirmwares.end(),
[](const Firmware *a, const Firmware *b) {
return QString::compare(a->getName(), b->getName(),
Qt::CaseInsensitive) < 0;
});
}
QString getFlavour();
static Firmware * getFirmwareForFlavour(const QString & flavour)