[gnome-software] flatpak: Stop refreshing the updates page after every update



commit 2e7ca21eb2e97468370e6406a47b507d6d7083d1
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Mon Oct 9 14:20:55 2017 +0200

    flatpak: Stop refreshing the updates page after every update
    
    The Flatpak plugin was emitting the "updates-changed" signal after
    updating every app. This ended up refreshing the updates page after
    each Flatpak update which takes a while and reloads the list of apps.
    
    To prevent that, this patch just removes the call that emits the
    mentioned signal. There is no downside from this removal because the
    updates page already responds correctly to the apps' state changes.

 plugins/flatpak/gs-flatpak.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index a33aa06..0e2bc41 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2960,9 +2960,6 @@ gs_flatpak_update_app (GsFlatpak *self,
                gs_app_set_state (app_tmp, AS_APP_STATE_INSTALLED);
        }
 
-       /* update UI */
-       gs_plugin_updates_changed (self->plugin);
-
        /* state is known */
        gs_app_set_state (app, AS_APP_STATE_INSTALLED);
        gs_app_set_update_version (app, NULL);


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