trivial: Add new category type for video display

This commit is contained in:
Gaël PORTAY 2022-02-10 12:20:44 +01:00 committed by Richard Hughes
parent b8da2f3200
commit 73377b2a53
2 changed files with 7 additions and 0 deletions

View File

@ -3786,6 +3786,8 @@ fu_common_device_category_to_name(const gchar *cat)
return "Mouse";
if (g_strcmp0(cat, "X-Keyboard") == 0)
return "Keyboard";
if (g_strcmp0(cat, "X-VideoDisplay") == 0)
return "Display";
return NULL;
}

View File

@ -779,6 +779,11 @@ fu_util_release_get_name(FwupdRelease *release)
* PCI card, not the logical wired connection */
return g_strdup_printf(_("%s Network Interface Update"), name);
}
if (g_strcmp0(cat, "X-VideoDisplay") == 0) {
/* TRANSLATORS: Video Display refers to the laptop internal display or
* external monitor */
return g_strdup_printf(_("%s Display Update"), name);
}
}
/* TRANSLATORS: this is the fallback where we don't know if the release