[gnome-software/1262-crash-under-gs_shell_show_uri-after-flatpak-app-install] 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/1262-crash-under-gs_shell_show_uri-after-flatpak-app-install] gs-details-page: Refresh the page content when replacing app with an alternative
- Date: Fri, 21 May 2021 10:24:19 +0000 (UTC)
commit d1da94cf2cc167d0e930f132f394ea3529cc9735
Author: Milan Crha <mcrha redhat com>
Date: Fri May 21 12:20:07 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 46d18dc04..7be95f9a2 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,
@@ -994,9 +993,8 @@ gs_details_page_get_alternates_cb (GObject *source_object,
gtk_widget_show (self->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]