mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Bug 92737 - Part 9: Download multiple files when multiple items are dropped on Downloads view in Library Window
Issue #121
This commit is contained in:
parent
bafa57d4d6
commit
04c959e619
1 changed files with 8 additions and 4 deletions
|
|
@ -1594,10 +1594,14 @@ DownloadsPlacesView.prototype = {
|
|||
if (dt.mozGetDataAt("application/x-moz-file", 0))
|
||||
return;
|
||||
|
||||
let name = { };
|
||||
let url = Services.droppedLinkHandler.dropLink(aEvent, name);
|
||||
if (url)
|
||||
DownloadURL(url, name.value);
|
||||
let links = Services.droppedLinkHandler.dropLinks(aEvent);
|
||||
if (!links.length)
|
||||
return;
|
||||
for (let link of links) {
|
||||
if (link.url.startsWith("about:"))
|
||||
continue;
|
||||
DownloadURL(link.url, link.name);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue