[gnome-software/gnome-3-22] Always show the full screen update spinner when re-getting the list of updates



commit ccff443fefd82a35ac2cb4a31676c0a10344cbc9
Author: Richard Hughes <richard hughsie com>
Date:   Mon Nov 14 12:49:31 2016 +0000

    Always show the full screen update spinner when re-getting the list of updates
    
    We don't hide the apps we are aware already need updates in the refresh phase
    (the bit where the packages actually get downloaded) but when we do the quick
    check for downloaded updates after the refresh we always need to clear the
    screen and show something. Although this should be nearly instant, in some
    cases it takes a couple of seconds.
    
    Quite why so long needs investigating.

 src/gs-shell-updates.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index a48efda..f571f7d 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -338,8 +338,11 @@ gs_shell_updates_update_ui_state (GsShellUpdates *self)
        case GS_SHELL_UPDATES_STATE_FAILED:
                gtk_stack_set_visible_child_name (GTK_STACK (self->stack_updates), "failed");
                break;
-       case GS_SHELL_UPDATES_STATE_ACTION_REFRESH:
        case GS_SHELL_UPDATES_STATE_ACTION_GET_UPDATES:
+               gtk_stack_set_visible_child_name (GTK_STACK (self->stack_updates),
+                                                 "spinner");
+               break;
+       case GS_SHELL_UPDATES_STATE_ACTION_REFRESH:
                if (self->result_flags != GS_SHELL_UPDATES_FLAG_NONE) {
                        gtk_stack_set_visible_child_name (GTK_STACK (self->stack_updates), "view");
                } else {


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