[gnome-software] Add all apps with installed status regardless of source kind
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add all apps with installed status regardless of source kind
- Date: Wed, 17 Feb 2016 09:49:33 +0000 (UTC)
commit 45eca3c4b4f9a116da87045e773a863e344df3d7
Author: Richard Hughes <richard hughsie com>
Date: Wed Feb 17 09:45:16 2016 +0000
Add all apps with installed status regardless of source kind
src/plugins/gs-plugin-appstream.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index edd735a..ef51f1a 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -1040,8 +1040,7 @@ gs_plugin_add_installed (GsPlugin *plugin,
array = as_store_get_apps (plugin->priv->store);
for (i = 0; i < array->len; i++) {
item = g_ptr_array_index (array, i);
- if (as_app_get_source_kind (item) == AS_APP_SOURCE_KIND_APPDATA ||
- as_app_get_source_kind (item) == AS_APP_SOURCE_KIND_DESKTOP) {
+ if (as_app_get_state (item) == AS_APP_STATE_INSTALLED) {
g_autoptr(GsApp) app = NULL;
app = gs_app_new (as_app_get_id (item));
if (!gs_plugin_refine_item (plugin, app, item, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]