[gnome-software] details page: Hide addons that are not available in repos
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] details page: Hide addons that are not available in repos
- Date: Fri, 12 Jul 2019 08:10:21 +0000 (UTC)
commit 4107a4aafc2a524454ca0590ab4d36764e513ddf
Author: Kalev Lember <klember redhat com>
Date: Fri Jul 12 11:08:54 2019 +0300
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 2a59f8f0..5784250a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]