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:
@@ -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 });
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user