[gnome-software/wip/temp/ubuntu-xenial-rebased: 282/329] Revert "Add a separate flag for refreshing just the UI"



commit 8b7263962d1be9534c95438ba6f3d9eb5224eac0
Author: William Hua <william hua canonical com>
Date:   Tue Apr 19 13:55:21 2016 -0400

    Revert "Add a separate flag for refreshing just the UI"
    
    This reverts commit 535a86abe48dd1d87e9ecf87df45eabaef71398b.

 src/gs-application.c              |    4 ++--
 src/plugins/gs-plugin-appstream.c |    8 +++-----
 2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index ce13352..cad567f 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -252,7 +252,7 @@ refreshed_cb (GObject      *source_object,
        if (gs_plugin_loader_refresh_finish (loader, res, NULL)) {
                gs_plugin_loader_refresh_async (loader,
                                                0,
-                                               GS_PLUGIN_REFRESH_FLAGS_UPDATES | GS_PLUGIN_REFRESH_FLAGS_UI,
+                                               GS_PLUGIN_REFRESH_FLAGS_UPDATES,
                                                NULL,
                                                NULL,
                                                NULL);
@@ -268,7 +268,7 @@ start_refresh (GsApplication *app)
 
        gs_plugin_loader_refresh_async (gs_application_get_plugin_loader (app),
                                        0,
-                                       GS_PLUGIN_REFRESH_FLAGS_UPDATES | GS_PLUGIN_REFRESH_FLAGS_UI,
+                                       GS_PLUGIN_REFRESH_FLAGS_UPDATES,
                                        NULL,
                                        refreshed_cb,
                                        app);
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index ffc9241..8d3dfe5 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -76,11 +76,9 @@ gs_plugin_refresh (GsPlugin              *plugin,
                   GCancellable          *cancellable,
                   GError               **error)
 {
-       if (flags & GS_PLUGIN_REFRESH_FLAGS_UI) {
-               plugin->priv->done_init = FALSE;
-               gs_plugin_appstream_startup (plugin, NULL);
-               gs_plugin_updates_changed (plugin);
-       }
+       plugin->priv->done_init = FALSE;
+       gs_plugin_appstream_startup (plugin, NULL);
+       gs_plugin_updates_changed (plugin);
 
        return TRUE;
 }


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