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



commit 41ddace5f9d027c5b30d4a4f581fb5286bad071d
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.

 lib/gs-plugin-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index ff12113..47f7c14 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3004,7 +3004,7 @@ gs_plugin_loader_generic_update (GsPluginLoader *plugin_loader,
                                                  gs_app_get_id (app));
                        g_assert (ptask != NULL);
                        gs_plugin_loader_action_start (plugin_loader, plugin, FALSE);
-                       ret = plugin_app_func (plugin, app, cancellable, &error_local);
+                       ret = plugin_app_func (plugin, app, gs_app_get_cancellable (app), &error_local);
                        gs_plugin_loader_action_stop (plugin_loader, plugin);
                        if (!ret) {
                                if (!gs_plugin_error_handle_failure (helper,


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