Merge pull request #33 from Szybet/master

bugfix - i cant believe this was my code
This commit is contained in:
Nicolas Mailloux 2022-08-14 17:15:29 -04:00 committed by GitHub
commit aa8214a297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,11 +236,8 @@ 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");
@ -257,6 +254,9 @@ QString userapps::parseJsonShow(QJsonObject json)
if(foundRequiredFeature == true) {
appendString.remove(appendString.size() - 2, 2);
}
else {
appendString.append("None");
}
}
else if(key == "SupportedDevices") {
for(QJsonValueRef ref: array) {