[gnome-software/gnome-3-22] plugin-loader: Use the apps' cancellable when doing a generic update



commit 8e9fc474baf592afdaad5e2dca13ba1ee290847c
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Oct 10 13:40:22 2017 +0200

    plugin-loader: Use the apps' cancellable when doing a generic update
    
    This way users will be able to cancel the updates from the apps' pages.

 src/gs-plugin-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 367a80a..6f35484 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -4618,7 +4618,7 @@ gs_plugin_loader_update_thread_cb (GTask *task,
                        g_assert (ptask != NULL);
                        gs_plugin_loader_action_start (plugin_loader, plugin, FALSE);
                        ret = plugin_app_func (plugin, app,
-                                              cancellable,
+                                              gs_app_get_cancellable (app),
                                               &error_local);
                        gs_plugin_loader_action_stop (plugin_loader, plugin);
                        if (!ret) {


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