[gnome-software] trivial: Fix the loading shell progress bar
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix the loading shell progress bar
- Date: Wed, 2 Nov 2016 16:13:48 +0000 (UTC)
commit cc7efee41e564d98c8e1973a32fe9dbbf078800f
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 d4223d8..3aa4fb6 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -44,7 +44,6 @@ typedef struct
gchar *location;
gchar *locale;
gchar *language;
- GsPluginStatus status_last;
GsAppList *global_cache;
AsProfile *profile;
SoupSession *soup_session;
@@ -3772,11 +3771,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);
@@ -4406,7 +4402,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]