[gnome-software/gnome-3-30] updates page: Add the "interactive" flag to page load jobs
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-30] updates page: Add the "interactive" flag to page load jobs
- Date: Tue, 18 Dec 2018 01:14:28 +0000 (UTC)
commit a90ad7dcc62ce1b36ca6ed7c7bcd2db4cd0f6946
Author: Kalev Lember <klember redhat com>
Date: Mon Dec 17 19:28:59 2018 +0100
updates page: Add the "interactive" flag to page load jobs
As these can be user initiated depending on the situation, mark them as
"interactive" to avoid the update monitor cancelling them.
src/gs-updates-page.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 89171400..f4519c04 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -671,6 +671,7 @@ gs_updates_page_load (GsUpdatesPage *self)
gs_updates_page_set_state (self, GS_UPDATES_PAGE_STATE_ACTION_GET_UPDATES);
self->action_cnt++;
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_GET_UPDATES,
+ "interactive", TRUE,
"refine-flags", refine_flags,
NULL);
gs_plugin_loader_job_process_async (self->plugin_loader, plugin_job,
@@ -682,6 +683,7 @@ gs_updates_page_load (GsUpdatesPage *self)
g_object_unref (plugin_job);
app = gs_plugin_loader_get_system_app (self->plugin_loader);
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_REFINE,
+ "interactive", TRUE,
"app", app,
"refine-flags", refine_flags,
NULL);
@@ -695,8 +697,9 @@ gs_updates_page_load (GsUpdatesPage *self)
refine_flags |= GS_PLUGIN_REFINE_FLAGS_REQUIRE_UPGRADE_REMOVED;
g_object_unref (plugin_job);
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_GET_DISTRO_UPDATES,
+ "interactive", TRUE,
"refine-flags", refine_flags,
- NULL);
+ NULL);
gs_plugin_loader_job_process_async (self->plugin_loader,
plugin_job,
self->cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]