[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 263/331]	Disable the Launch button for snappy apps
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 263/331]	Disable the Launch button for snappy apps
- Date: Wed,  4 May 2016 14:20:38 +0000 (UTC)
commit 1d09ef0e6cdd9de2d3e2a4d845ecddac1a222112
Author: William Hua <william hua canonical com>
Date:   Sun Apr 17 22:09:00 2016 -0400
    Disable the Launch button for snappy apps
 src/gs-plugin-loader.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index f7330df..860a725 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -432,7 +432,8 @@ gs_plugin_loader_app_is_valid (GsApp *app, gpointer user_data)
 
        /* don't show unconverted packages in the application view */
        if (((state->flags & GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES) == 0) &&
-           (gs_app_get_kind (app) == AS_APP_KIND_GENERIC)) {
+           (gs_app_get_kind (app) == AS_APP_KIND_GENERIC) &&
+           (g_strcmp0 (gs_app_get_management_plugin (app), "snappy") != 0)) {
 //             g_debug ("app invalid as only a %s: %s",
 //                      as_app_kind_to_string (gs_app_get_kind (app)),
 //                      gs_plugin_loader_get_app_str (app));
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]