Commit b080bc6b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: we only extract 1 icon, we don't need to check for more

parent 262f48c8
......@@ -86,8 +86,8 @@ FwupdResource * FwupdBackend::createDevice(FwupdDevice *device)
FwupdResource* res = new FwupdResource(name, true, this);
res->setId(buildDeviceID(device));
res->addCategories(QStringLiteral("Releases"));
if(fwupd_device_get_icons(device)->len > 1)
res->setIconName(QString::fromUtf8((const gchar *)g_ptr_array_index(fwupd_device_get_icons(device),0)));// Check Weather given icon exists or not!
if(fwupd_device_get_icons(device)->len >= 1)
res->setIconName(QString::fromUtf8((const gchar *)g_ptr_array_index(fwupd_device_get_icons(device),0)));// Check wether given icon exists or not!
setDeviceDetails(res,device);
return res;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment