[gnome-software] trivial: Only update the headerbar refresh when on the updates page



commit 896fbcadd0d2a765d059a09229221aff85839546
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 7 17:31:33 2014 +0200

    trivial: Only update the headerbar refresh when on the updates page

 src/gs-shell-updates.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 25e5fc0..024ed68 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -847,7 +847,8 @@ gs_shell_updates_status_changed_cb (GsPluginLoader *plugin_loader,
 {
        GsShellUpdatesPrivate *priv = shell_updates->priv;
        priv->last_status = status;
-       gs_shell_updates_update_ui_state (shell_updates);
+       if (gs_shell_get_mode (shell_updates->priv->shell) == GS_SHELL_MODE_UPDATES)
+               gs_shell_updates_update_ui_state (shell_updates);
 }
 
 void


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