[gnome-software] Do not show runtimes in the installed panel



commit 5cc2331de6621e6590a07831bbb1e65071f5c934
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 17 12:37:14 2016 +0000

    Do not show runtimes in the installed panel

 src/plugins/gs-plugin-xdg-app.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index 0d43ba8..3f16d29 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -476,6 +476,11 @@ gs_plugin_add_installed (GsPlugin *plugin,
                XdgAppInstalledRef *xref = g_ptr_array_index (xrefs, i);
                g_autoptr(GError) error_local = NULL;
                g_autoptr(GsApp) app = NULL;
+
+               /* only apps */
+               if (xdg_app_ref_get_kind (XDG_APP_REF (xref)) != XDG_APP_REF_KIND_APP)
+                       continue;
+
                app = gs_plugin_xdg_app_create_installed (plugin, xref, &error_local);
                if (app == NULL) {
                        g_warning ("failed to add xdg-app: %s", error_local->message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]