28 lines
896 B
Diff
28 lines
896 B
Diff
|
From 4107a4aafc2a524454ca0590ab4d36764e513ddf Mon Sep 17 00:00:00 2001
|
||
|
From: Kalev Lember <klember@redhat.com>
|
||
|
Date: Fri, 12 Jul 2019 11:08:54 +0300
|
||
|
Subject: [PATCH] details page: Hide addons that are not available in repos
|
||
|
|
||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1719779
|
||
|
---
|
||
|
src/gs-details-page.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
|
||
|
index 2a59f8f08..5784250aa 100644
|
||
|
--- a/src/gs-details-page.c
|
||
|
+++ b/src/gs-details-page.c
|
||
|
@@ -1383,7 +1383,8 @@ gs_details_page_refresh_addons (GsDetailsPage *self)
|
||
|
GtkWidget *row;
|
||
|
|
||
|
addon = gs_app_list_index (addons, i);
|
||
|
- if (gs_app_get_state (addon) == AS_APP_STATE_UNAVAILABLE)
|
||
|
+ if (gs_app_get_state (addon) == AS_APP_STATE_UNKNOWN ||
|
||
|
+ gs_app_get_state (addon) == AS_APP_STATE_UNAVAILABLE)
|
||
|
continue;
|
||
|
|
||
|
row = gs_app_addon_row_new (addon);
|
||
|
--
|
||
|
2.21.0
|
||
|
|