[gnome-software/gnome-3-22] trivial: Don't show a screenshot placeholder for GENERIC apps



commit 2fb57f261a7e16fc728213dd74e8b082f5f955e3
Author: Kalev Lember <klember redhat com>
Date:   Mon Jan 16 16:10:01 2017 +0100

    trivial: Don't show a screenshot placeholder for GENERIC apps
    
    These are likely packages without appdata that are shown when another
    app calls into us through the org.freedesktop.PackageKit dbus session
    interface.

 src/gs-shell-details.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 9e19204..4188446 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -564,6 +564,7 @@ gs_shell_details_refresh_screenshots (GsShellDetails *self)
        /* fallback warning */
        screenshots = gs_app_get_screenshots (self->app);
        switch (gs_app_get_kind (self->app)) {
+       case AS_APP_KIND_GENERIC:
        case AS_APP_KIND_CODEC:
        case AS_APP_KIND_ADDON:
        case AS_APP_KIND_SOURCE:


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