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