[gnome-software/gnome-3-22] trivial: Fix the loading shell progress bar



commit 75050f99e105db442e3c3275dbe132ded8165199
Author: Richard Hughes <richard hughsie com>
Date:   Wed Nov 2 10:39:15 2016 +0000

    trivial: Fix the loading shell progress bar
    
    Don't ignore the status-changed notification if the same as before, as other
    properties on the object may have changed, for instance the percentage...

 src/gs-plugin-loader.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 5011da1..b0177f6 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -43,7 +43,6 @@ typedef struct
        gchar                   *location;
        gchar                   *locale;
        gchar                   *language;
-       GsPluginStatus           status_last;
        GsAppList               *global_cache;
        AsProfile               *profile;
        SoupSession             *soup_session;
@@ -3458,11 +3457,8 @@ gs_plugin_loader_status_changed_cb (GsPlugin *plugin,
 
        /* nothing specific */
        if (gs_app_get_id (app) == NULL) {
-               if (status == priv->status_last)
-                       return;
                g_debug ("emitting global %s",
                         gs_plugin_status_to_string (status));
-               priv->status_last = status;
                g_signal_emit (plugin_loader,
                               signals[SIGNAL_STATUS_CHANGED],
                               0, app, status);
@@ -4012,7 +4008,6 @@ gs_plugin_loader_init (GsPluginLoader *plugin_loader)
        priv->scale = 1;
        priv->global_cache = gs_app_list_new ();
        priv->plugins = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
-       priv->status_last = GS_PLUGIN_STATUS_LAST;
        priv->pending_apps = g_ptr_array_new_with_free_func ((GFreeFunc) g_object_unref);
        priv->auth_array = g_ptr_array_new_with_free_func ((GFreeFunc) g_object_unref);
        priv->profile = as_profile_new ();


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