[gnome-control-center/wip/hughsie/hsi-ignore-supported-cpu] firmware-security: Do not show the 'Processor Supported' attribute




commit 8aec9a477fc2cf9134073dfff7d88476b63bb62d
Author: Richard Hughes <richard hughsie com>
Date:   Mon Aug 1 16:30:54 2022 +0100

    firmware-security: Do not show the 'Processor Supported' attribute
    
    This is really just saying "the HSI tests make sense" and is not really
    useful to show in the UI.

 panels/firmware-security/cc-firmware-security-dialog.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/firmware-security/cc-firmware-security-dialog.c 
b/panels/firmware-security/cc-firmware-security-dialog.c
index 57d143adf..633d4908c 100644
--- a/panels/firmware-security/cc-firmware-security-dialog.c
+++ b/panels/firmware-security/cc-firmware-security-dialog.c
@@ -263,6 +263,8 @@ update_hsi_listbox (CcFirmwareSecurityDialog *self,
   for (GList *item = g_list_first (hash_keys); item != NULL; item = g_list_next (item))
     {
       FwupdSecurityAttr *attr = g_hash_table_lookup (hsi_dict, item->data);
+      if (g_strcmp0 (attr->appstream_id, FWUPD_SECURITY_ATTR_ID_SUPPORTED_CPU) == 0)
+        continue;
       if (attr->title == NULL)
         continue;
       if (firmware_security_attr_has_flag (attr, FWUPD_SECURITY_ATTR_FLAG_SUCCESS))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]