[gnome-software] loading page: Make errors from initial refresh() show up as events
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] loading page: Make errors from initial refresh() show up as events
- Date: Wed, 7 Mar 2018 16:29:18 +0000 (UTC)
commit 31184f328d43131571887238c3c90bb5dae26a7f
Author: Kalev Lember <klember redhat com>
Date: Wed Mar 7 17:14:39 2018 +0100
loading page: Make errors from initial refresh() show up as events
We don't currently have a global failed-to-load state, so let's just
show errors as in-app notification for now.
src/gs-loading-page.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-loading-page.c b/src/gs-loading-page.c
index 5c57275f..29228439 100644
--- a/src/gs-loading-page.c
+++ b/src/gs-loading-page.c
@@ -134,7 +134,7 @@ gs_loading_page_load (GsLoadingPage *self)
* spin up the plugins enough as to prime caches */
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_REFRESH,
"age", (guint64) G_MAXUINT,
- "failure-flags", GS_PLUGIN_FAILURE_FLAGS_NONE,
+ "failure-flags", GS_PLUGIN_FAILURE_FLAGS_USE_EVENTS,
"refresh-flags", GS_PLUGIN_REFRESH_FLAGS_METADATA,
NULL);
gs_plugin_loader_job_process_async (priv->plugin_loader, plugin_job,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]