Add X-UsbReceiver as an update category

This commit is contained in:
Richard Hughes 2022-05-24 11:00:41 +01:00
parent 636786dd6a
commit 5e6ed64f68
2 changed files with 7 additions and 0 deletions

View File

@ -3461,6 +3461,8 @@ fu_common_device_category_to_name(const gchar *cat)
return "Display";
if (g_strcmp0(cat, "X-BaseboardManagementController") == 0)
return "BMC";
if (g_strcmp0(cat, "X-UsbReceiver") == 0)
return "USB Receiver";
return NULL;
}

View File

@ -797,6 +797,11 @@ fu_util_release_get_name(FwupdRelease *release)
* is the device that updates all the other firmware on the system */
return g_strdup_printf(_("%s BMC Update"), name);
}
if (g_strcmp0(cat, "X-UsbReceiver") == 0) {
/* TRANSLATORS: Receiver refers to a radio device, e.g. a tiny Bluetooth
* device that stays in the USB port so the wireless peripheral works */
return g_strdup_printf(_("%s USB Receiver Update"), name);
}
}
/* TRANSLATORS: this is the fallback where we don't know if the release