trivial: Don't use the security attr result in the title

Fixes some of https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1989
This commit is contained in:
Richard Hughes 2022-08-10 10:13:29 +01:00
parent 28357f7528
commit fc702c696b

View File

@ -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 */