[gnome-software/1164-packagekit-recognize-urgent-updates] gs-update-monitor: Consider only critical updates as important



commit 4e9b49244b4cf835bafef99ae507dbfb04dc7ca7
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 f22b5eb28..384d28eb2 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]