[gnome-software] trivial: Only reload the moderation results if the panel is showing
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Only reload the moderation results if the panel is showing
- Date: Wed, 5 Jul 2017 11:52:21 +0000 (UTC)
commit 9a1d469288d969064244cb1d57a76970f7295e43
Author: Richard Hughes <richard hughsie com>
Date: Wed Jul 5 11:33:02 2017 +0100
trivial: Only reload the moderation results if the panel is showing
src/gs-moderate-page.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-moderate-page.c b/src/gs-moderate-page.c
index 43cc3a4..b8b0ac8 100644
--- a/src/gs-moderate-page.c
+++ b/src/gs-moderate-page.c
@@ -206,7 +206,8 @@ static void
gs_moderate_page_reload (GsPage *page)
{
GsModeratePage *self = GS_MODERATE_PAGE (page);
- gs_moderate_page_load (self);
+ if (gs_shell_get_mode (self->shell) == GS_SHELL_MODE_MODERATE)
+ gs_moderate_page_load (self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]