[gnome-software/gnome-40: 2/3] gs-update-monitor: Consider only critical updates as important




commit c93f4afb3b4daf592dc2187c7eafd24000e8f079
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 21 08:18:59 2021 +0200

    gs-update-monitor: Consider only critical updates as important
    
    This limits which updates are considered as important updates.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1164

 src/gs-update-monitor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index c1d12a72c..125d8040e 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -98,8 +98,7 @@ check_updates_kind (GsAppList *apps,
                app = gs_app_list_index (apps, ii);
 
                has_important = has_important ||
-                               gs_app_get_update_urgency (app) == AS_URGENCY_KIND_CRITICAL ||
-                               gs_app_get_update_urgency (app) == AS_URGENCY_KIND_HIGH;
+                               gs_app_get_update_urgency (app) == AS_URGENCY_KIND_CRITICAL;
 
                /* took from gs-updates-section.c: _all_offline_updates_downloaded();
                   the app is considered downloaded, when its download size is 0 */


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