[gnome-software] Only skip the xdg-app refine if the state is known
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Only skip the xdg-app refine if the state is known
- Date: Wed, 10 Feb 2016 14:51:14 +0000 (UTC)
commit 9908c0146b081b4da747cd217634eb0d536ba1eb
Author: Richard Hughes <richard hughsie com>
Date: Wed Feb 10 14:48:14 2016 +0000
Only skip the xdg-app refine if the state is known
All the states get reset after install/remove/updates-changed.
src/plugins/gs-plugin-xdg-app.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index 3c00906..74a23e8 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -742,7 +742,8 @@ gs_plugin_refine_item_action (GsPlugin *plugin,
g_autoptr(AsProfileTask) ptask = NULL;
/* already found */
- if (gs_app_get_metadata_item (app, "XgdApp::type") != NULL)
+ if (gs_app_get_metadata_item (app, "XgdApp::type") != NULL &&
+ gs_app_get_state (app) != AS_APP_STATE_UNKNOWN)
return TRUE;
/* get apps and runtimes */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]