[gnome-software] Fix showing recently installed updates



commit 9dfd7ca729422383ce1c22540190163ce6290b6c
Author: Kalev Lember <kalevlember gmail com>
Date:   Wed Mar 19 19:45:13 2014 +0100

    Fix showing recently installed updates
    
    This fixes the state tracking code so that the updates page doesn't get
    stuck at "Looking for new updates…" after clicking 'Review' on the
    notification.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726645

 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 349fcfb..1765575 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -347,7 +347,8 @@ gs_shell_updates_set_state (GsShellUpdates *shell_updates,
                            GsShellUpdatesState state)
 {
        shell_updates->priv->state = state;
-       if (gs_shell_get_mode (shell_updates->priv->shell) == GS_SHELL_MODE_UPDATES)
+       if (gs_shell_get_mode (shell_updates->priv->shell) == GS_SHELL_MODE_UPDATES ||
+           gs_shell_get_mode (shell_updates->priv->shell) == GS_SHELL_MODE_UPDATED)
                gs_shell_updates_update_ui_state (shell_updates);
 }
 


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