[gnome-software/gnome-3-10] Avoid reloading the overview more than once
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-10] Avoid reloading the overview more than once
- Date: Mon, 14 Oct 2013 12:31:37 +0000 (UTC)
commit dbf57de607d58f9a8f38462c7ca36d334aacfbcb
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]