[gnome-software] trivial: Never show the refresh button on the overview page



commit 0f4c77dbb64cb24d3ec978a27a635d931c98c356
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 29 10:58:02 2014 +0000

    trivial: Never show the refresh button on the overview 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 c66c65c..e0d5b24 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -259,7 +259,8 @@ gs_shell_updates_set_state (GsShellUpdates *shell_updates,
                            GsShellUpdatesState state)
 {
        shell_updates->priv->state = state;
-       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);
 }
 
 /**


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