[gnome-software] snap: Only load icons once



commit 3f510b642fd73836a0625bb791e1c6e868bcbe8e
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Apr 16 15:24:03 2018 +1200

    snap: Only load icons once

 plugins/snap/gs-plugin-snap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index f2671387..510a02a7 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -884,7 +884,7 @@ gs_plugin_refine_app (GsPlugin *plugin,
        }
 
        /* load icon if requested */
-       if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON)
+       if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON && gs_app_get_pixbuf (app) == NULL)
                load_icon (plugin, client, app, id, local_snap, store_snap, cancellable);
 
        return TRUE;


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