[gnome-software/wip/temp/ubuntu-xenial-rebased: 279/326] Revert "Add a separate flag for refreshing just the UI"
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 279/326] Revert "Add a separate flag for refreshing just the UI"
- Date: Fri, 29 Apr 2016 10:10:48 +0000 (UTC)
commit d1eb3e13038075ec5e0c3e3565d36c853043fa7e
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]