[gnome-software] 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] updates page: Add the "interactive" flag to page load jobs
- Date: Tue, 18 Dec 2018 01:13:45 +0000 (UTC)
commit e0580c421ccb0e2e00c57d54b1cf5ca7c7e97d7a
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 | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index d302e651..70aa7154 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -670,6 +670,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,
"dedupe-flags", GS_APP_LIST_FILTER_FLAG_NONE,
NULL);
@@ -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,6 +697,7 @@ 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);
gs_plugin_loader_job_process_async (self->plugin_loader,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]