[gnome-software] Don't show addons that are in unavailable state
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't show addons that are in unavailable state
- Date: Tue, 30 Sep 2014 10:44:29 +0000 (UTC)
commit 1adf2ce001be44288185fe8493a80dfb4add9096
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Sep 30 12:34:31 2014 +0200
Don't show addons that are in unavailable state
This makes sure that we only show 3rd party addons when the repos that
supply the packages are actually installed and enabled.
https://bugzilla.redhat.com/show_bug.cgi?id=1145827
src/gs-shell-details.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index baa24cb..7d414c8 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -834,6 +834,9 @@ gs_shell_details_refresh_addons (GsShellDetails *shell_details)
GtkWidget *row;
addon = g_ptr_array_index (addons, i);
+ if (gs_app_get_state (addon) == AS_APP_STATE_UNAVAILABLE)
+ continue;
+
row = gs_app_addon_row_new ();
gs_app_addon_row_set_addon (GS_APP_ADDON_ROW (row), addon);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]