[gnome-boxes/wip/rishi/rhel: 12/13] wizard: Wire the custom filename to the downloader
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/rishi/rhel: 12/13] wizard: Wire the custom filename to the downloader
- Date: Wed, 6 Sep 2017 15:16:00 +0000 (UTC)
commit 6713d74bfc248d295f8580ccd6b8ccbeceeaaf78
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 209e92d..38b4e4f 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -408,7 +408,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);
return true;
}
@@ -604,12 +604,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]