[gnome-software/wip/mcrha/m762-to-gnome-40] gs-details-page: Refresh the page content when replacing app with an alternative
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/mcrha/m762-to-gnome-40] gs-details-page: Refresh the page content when replacing app with an alternative
- Date: Wed, 7 Jul 2021 10:51:56 +0000 (UTC)
commit a8802f9b6b9447885353b4b6e744979549c84682
Author: Milan Crha <mcrha redhat com>
Date: Wed Jul 7 12:51:16 2021 +0200
gs-details-page: Refresh the page content when replacing app with an alternative
While the alternative should hold the same information as a same-looking
application, it can happen it does not, thus refresh the whole content,
to present an up-to-date information to the user.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1262
src/gs-details-page.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 6190cc392..6437c39a4 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -55,7 +55,6 @@
GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION
static void gs_details_page_refresh_all (GsDetailsPage *self);
-static void gs_details_page_refresh_buttons (GsDetailsPage *self);
typedef enum {
GS_DETAILS_PAGE_STATE_LOADING,
@@ -960,9 +959,8 @@ gs_details_page_get_alternates_cb (GObject *source_object,
gtk_widget_show (origin_box);
- /* The other parts of the app are the same, only the state/buttons could change */
if (instance_changed)
- gs_details_page_refresh_buttons (self);
+ gs_details_page_refresh_all (self);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]