[gnome-boxes/wip/rishi/rhel: 11/15] 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: 11/15] wizard: Wire the custom filename to the downloader
- Date: Mon, 25 Sep 2017 16:26:20 +0000 (UTC)
commit 583417ee0331724e517669df114060678cca3511
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 9650fac..64eb89b 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);
var os = wizard_source.get_os_from_uri (wizard_source.uri);
if (os == null)
@@ -608,12 +608,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]