[gnome-boxes/wip/rishi/rhel: 13/16] wizard: Wire the custom filename to the downloader



commit b794e52ebf8491ec0dba36381c3e0d453b742139
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Sep 6 13:48:27 2017 +0200

    wizard: Wire the custom filename to the downloader
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786679

 src/wizard.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 40f72cc..0b681ec 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -409,7 +409,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
 
         if (wizard_source.download_required) {
             continue_button.sensitive = false;
-            download_media.begin (wizard_source.uri, progress);
+            download_media.begin (wizard_source.uri, null, progress);
 
             var os = wizard_source.get_os_from_uri (wizard_source.uri);
             if (os == null)
@@ -609,12 +609,12 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
         return false;
     }
 
-    private async void download_media (string uri, ActivityProgress progress) {
+    private async void download_media (string uri, string? filename, ActivityProgress progress) {
         var download_progress = progress.add_child_activity (DOWNLOAD_PROGRESS_SCALE);
         prep_status_label.label = _("Downloading media…");
 
         try {
-            var cache_path = yield Downloader.fetch_media (uri, null, download_progress, 
prepare_cancellable);
+            var cache_path = yield Downloader.fetch_media (uri, filename, download_progress, 
prepare_cancellable);
             prepare_downloaded_media (cache_path, progress);
         } catch (GLib.IOError.CANCELLED e) {
             debug ("Cancelled downloading media '%s'!", uri);


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