[gnome-software] Avoid reloading the overview more than once



commit e4dcffadb536653116b47f63af9725094d728c27
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Oct 5 01:49:49 2013 -0400

    Avoid reloading the overview more than once
    
    Don't start another refresh if some of the pieces are still
    loading. This can only lead to confusion.

 src/gs-shell-overview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 6b60ec0..ee76a20 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -263,7 +263,7 @@ gs_shell_overview_refresh (GsShellOverview *shell, gboolean scroll_up)
                gs_grab_focus_when_mapped (widget);
        }
 
-       if (priv->cache_valid)
+       if (priv->cache_valid || priv->refresh_count > 0)
                return;
 
        priv->empty = TRUE;


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