[gnome-software] Do not reload all shells when the updates list changes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not reload all shells when the updates list changes
- Date: Mon, 13 Jun 2016 08:17:46 +0000 (UTC)
commit 091d2feef9c9b77bdb632161202c8059ef8d2034
Author: Richard Hughes <richard hughsie com>
Date: Sat Jun 11 23:30:51 2016 +0100
Do not reload all shells when the updates list changes
src/gs-shell-updates.c | 3 +++
src/gs-shell.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index bffc04f..e1834fd 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -1233,6 +1233,9 @@ gs_shell_updates_changed_cb (GsPluginLoader *plugin_loader,
/* if we do a live update and the upgrade is waiting to be deployed
* then make sure all new packages are downloaded */
gs_shell_updates_invalidate_downloaded_upgrade (self);
+
+ /* refresh updates list */
+ gs_shell_updates_reload (GS_PAGE (self));
}
/**
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 466b60a..9b53e61 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -612,8 +612,6 @@ gs_shell_setup (GsShell *shell, GsPluginLoader *plugin_loader, GCancellable *can
priv->plugin_loader = g_object_ref (plugin_loader);
g_signal_connect (priv->plugin_loader, "reload",
G_CALLBACK (gs_shell_reload_cb), shell);
- g_signal_connect (priv->plugin_loader, "updates-changed",
- G_CALLBACK (gs_shell_reload_cb), shell);
priv->cancellable = g_object_ref (cancellable);
gs_shell_monitor_permission (shell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]