1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 05:57: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) if (download.state == downloadManager.DOWNLOAD_FINISHED)
{ {
autocommands.trigger("DownloadPost", let url = download.source.spec;
{ let title = download.displayName;
url: download.source.spec, let file = download.targetFile.path;
file: download.targetFile.path, let size = download.size;
title: download.displayName,
size: download.size liberator.echomsg("Download of " + title + " to " + file + " finished", 1);
} autocommands.trigger("DownloadPost", { url: url, title: title, file: file, size: size });
);
} }
} }
}; };