From 73377b2a530ec23e3712c1cf47f99e8885a18707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Date: Thu, 10 Feb 2022 12:20:44 +0100 Subject: [PATCH] trivial: Add new category type for video display --- src/fu-engine.c | 2 ++ src/fu-util-common.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/fu-engine.c b/src/fu-engine.c index 6e93511b8..617ad6aad 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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; } diff --git a/src/fu-util-common.c b/src/fu-util-common.c index 02cb4b22b..498ca0341 100644 --- a/src/fu-util-common.c +++ b/src/fu-util-common.c @@ -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