зеркало из https://github.com/mozilla/pjs.git
Bug 381803 - two files are listed in DM, while downloading one file. r=mconnor
This commit is contained in:
Родитель
43f584cdd4
Коммит
94b98ea66b
|
@ -207,6 +207,8 @@ var gDownloadObserver = {
|
||||||
case "dl-start":
|
case "dl-start":
|
||||||
// Add this download to the percentage average tally
|
// Add this download to the percentage average tally
|
||||||
var dl = aSubject.QueryInterface(Components.interfaces.nsIDownload);
|
var dl = aSubject.QueryInterface(Components.interfaces.nsIDownload);
|
||||||
|
if (getDownload(dl.id))
|
||||||
|
return;
|
||||||
gActiveDownloads.push(dl);
|
gActiveDownloads.push(dl);
|
||||||
|
|
||||||
// Adding to the UI
|
// Adding to the UI
|
||||||
|
|
Загрузка…
Ссылка в новой задаче