bugfix - i cant believe this was my code

This commit is contained in:
Szybet 2022-08-12 23:57:37 +02:00
parent fc8c2ea8b6
commit e4aada6156

View file

@ -236,11 +236,9 @@ QString userapps::parseJsonShow(QJsonObject json)
QJsonArray array = value.toArray();
if(key == "RequiredFeatures") {
bool foundRequiredFeature = false;
appendString.append("None");
for(QJsonValueRef ref: array) {
foundRequiredFeature = true;
appendString.remove(appendString.size() - 4, 4);
int id = ref.toInt();
if(id == 0) {
appendString.append("Wi-Fi connection");
@ -256,6 +254,8 @@ QString userapps::parseJsonShow(QJsonObject json)
if(foundRequiredFeature == true) {
appendString.remove(appendString.size() - 2, 2);
} else {
appendString.append("None");
}
}
else if(key == "SupportedDevices") {