[gnome-boxes] wizard: Wire the custom filename to the downloader
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard: Wire the custom filename to the downloader
- Date: Thu, 12 Oct 2017 15:26:48 +0000 (UTC)
commit 3bb971d4d52d4574caf200028bd1e2dd033d7d68
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]