From db520b80a5c792f15450faac7b0c239a1e4485e7 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 15 Oct 2008 15:40:03 +0000 Subject: [PATCH] add download finish info message --- content/io.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/content/io.js b/content/io.js index 08065d8a..85c0edd8 100644 --- a/content/io.js +++ b/content/io.js @@ -89,14 +89,13 @@ function IO() //{{{ { if (download.state == downloadManager.DOWNLOAD_FINISHED) { - autocommands.trigger("DownloadPost", - { - url: download.source.spec, - file: download.targetFile.path, - title: download.displayName, - size: download.size - } - ); + let url = download.source.spec; + let title = download.displayName; + let file = download.targetFile.path; + let size = download.size; + + liberator.echomsg("Download of " + title + " to " + file + " finished", 1); + autocommands.trigger("DownloadPost", { url: url, title: title, file: file, size: size }); } } };