From fc702c696b5b75e772193a6b0e550e497a19f8ea Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 10 Aug 2022 10:13:29 +0100 Subject: [PATCH] trivial: Don't use the security attr result in the title Fixes some of https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1989 --- src/fu-security-attr-common.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/fu-security-attr-common.c b/src/fu-security-attr-common.c index dd1c2f7d3..cbbf6dc7b 100644 --- a/src/fu-security-attr-common.c +++ b/src/fu-security-attr-common.c @@ -254,15 +254,10 @@ fu_security_attr_get_title(FwupdSecurityAttr *attr) /* TRANSLATORS: Title: BootGuard is a trademark from Intel */ return _("Intel BootGuard Fuse"); } - if (g_strcmp0(appstream_id, FWUPD_SECURITY_ATTR_ID_INTEL_CET_ENABLED) == 0) { - /* TRANSLATORS: Title: CET = Control-flow Enforcement Technology, - * enabled means supported by the processor */ - return _("Intel CET Enabled"); - } - if (g_strcmp0(appstream_id, FWUPD_SECURITY_ATTR_ID_INTEL_CET_ACTIVE) == 0) { - /* TRANSLATORS: Title: CET = Control-flow Enforcement Technology, - * active means being used by the OS */ - return _("Intel CET Active"); + if (g_strcmp0(appstream_id, FWUPD_SECURITY_ATTR_ID_INTEL_CET_ENABLED) == 0 || + g_strcmp0(appstream_id, FWUPD_SECURITY_ATTR_ID_INTEL_CET_ACTIVE) == 0) { + /* TRANSLATORS: Title: CET = Control-flow Enforcement Technology */ + return _("Intel CET"); } if (g_strcmp0(appstream_id, FWUPD_SECURITY_ATTR_ID_INTEL_SMAP) == 0) { /* TRANSLATORS: Title: SMAP = Supervisor Mode Access Prevention */