[gnome-software/1871-source-chooser-is-broken-for-preinstalled-gnome-os-apps] gs-details-page: Hide the origin box when the app origin is not known
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1871-source-chooser-is-broken-for-preinstalled-gnome-os-apps] gs-details-page: Hide the origin box when the app origin is not known
- Date: Fri, 26 Aug 2022 12:30:31 +0000 (UTC)
commit 16c1a3f4ab1f52c7351d6b745e8961cd95f905fa
Author: Milan Crha <mcrha redhat com>
Date: Fri Aug 26 14:27:13 2022 +0200
gs-details-page: Hide the origin box when the app origin is not known
The shown app origin can be unknown in certain cases, which can show empty
origin selector, which is not desired, thus hide it in such case.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1871
src/gs-details-page.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index cb34b655d..23b6ff66b 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -771,7 +771,10 @@ gs_details_page_get_alternates_cb (GObject *source_object,
else if (select_row)
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (select_row), FALSE);
- gs_details_page_update_origin_button (self, TRUE);
+ if (select_row != NULL)
+ gs_details_page_update_origin_button (self, TRUE);
+ else
+ gtk_widget_hide (self->origin_box);
if (instance_changed) {
g_autoptr(GsPluginJob) plugin_job = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]