[gnome-software/wip/iainl/ubuntu-xenial] Refresh the UI after an upgrade in the apt backend
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/iainl/ubuntu-xenial] Refresh the UI after an upgrade in the apt backend
- Date: Fri, 15 Apr 2016 13:42:36 +0000 (UTC)
commit c9016db09089e819323f49305b5d3b84f9ce74f4
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 4f5c41b..c0d72c6 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -1052,6 +1052,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);
@@ -1098,6 +1100,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);
@@ -1113,6 +1117,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]