1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

add download finish info message

This commit is contained in:
Doug Kearns
2008-10-15 15:40:03 +00:00
parent 62d78348b4
commit db520b80a5

View File

@@ -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 });
}
}
};