[gnome-software/wip/temp/ubuntu-xenial-rebased: 243/326] Refresh the UI after an upgrade in the apt backend



commit 7a73bfbe89426081d2fb3700dc7f89970a6754f6
Author: William Hua <william hua canonical com>
Date:   Fri Apr 15 09:42:11 2016 -0400

    Refresh the UI after an upgrade in the apt backend

 src/plugins/gs-plugin-apt.cc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 19a001c..bc3ccaa 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -1042,6 +1042,8 @@ gs_plugin_update (GsPlugin      *plugin,
 
                                unload_apt_db (plugin);
 
+                               gs_plugin_updates_changed (plugin);
+
                                return TRUE;
                        } else {
                                set_list_state (apps, AS_APP_STATE_UPDATABLE_LIVE);
@@ -1088,6 +1090,8 @@ gs_plugin_update_app (GsPlugin *plugin,
                                gs_app_set_state (GS_APP (g_ptr_array_index (apps, i)), 
AS_APP_STATE_INSTALLED);
 
                        unload_apt_db (plugin);
+
+                       gs_plugin_updates_changed (plugin);
                } else {
                        gs_app_set_state (app, AS_APP_STATE_UPDATABLE_LIVE);
 
@@ -1103,6 +1107,8 @@ gs_plugin_update_app (GsPlugin *plugin,
                        gs_app_set_state (app, AS_APP_STATE_INSTALLED);
 
                        unload_apt_db (plugin);
+
+                       gs_plugin_updates_changed (plugin);
                } else {
                        gs_app_set_state (app, AS_APP_STATE_UPDATABLE_LIVE);
 


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