[gnome-software: 1/9] Allow to cancel installation of apps that were queued for install




commit f4a2ff9595fc6328491ee3d614bf7f437d2b85d8
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Thu Feb 15 23:28:41 2018 +0100

    Allow to cancel installation of apps that were queued for install
    
    When apps were queued for installation, and the network became
    available, they were being installed without having any cancellable
    being used. This meant that cancelling the installation was not
    possible even if the user clicked the cancel button.
    
    This patch makes the installation process in question to use the
    cancellable from the app being installed, which is what the cancel
    button in the details view uses for cancelling the on-going
    operations.
    
    (Rebased from downstream Endless OS by Philip Withnall)

 lib/gs-plugin-loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index a7f86d5f2..0bb2716fa 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3222,7 +3222,7 @@ gs_plugin_loader_maybe_flush_pending_install_queue (GsPluginLoader *plugin_loade
                                                         NULL);
                }
                gs_plugin_loader_job_process_async (plugin_loader, plugin_job,
-                                                   NULL,
+                                                   gs_app_get_cancellable (app),
                                                    gs_plugin_loader_app_installed_cb,
                                                    g_object_ref (app));
        }


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