[gnome-software/1125-gs-details-page-refresh-only-when-being-selected] gs-details-page: Refresh only when being selected
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1125-gs-details-page-refresh-only-when-being-selected] gs-details-page: Refresh only when being selected
- Date: Tue, 27 Apr 2021 16:59:21 +0000 (UTC)
commit e4615fa295ac26009d80e3c4b75197fee687fb30
Author: Milan Crha <mcrha redhat com>
Date: Tue Apr 27 18:57:40 2021 +0200
gs-details-page: Refresh only when being selected
Do not refresh the page when it's not selected/active, to not update global
widgets in the window and to not waste the time and resources on changes,
which the user doesn't see.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1125
src/gs-details-page.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 8f72f2304..cf9b4b393 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -1194,6 +1194,9 @@ gs_details_page_refresh_all (GsDetailsPage *self)
GPtrArray *version_history;
guint icon_size;
+ if (!gs_page_is_active (GS_PAGE (self)))
+ return;
+
/* change widgets */
tmp = gs_app_get_name (self->app);
gs_details_page_set_header_label (self, tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]