mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 381801 - Downloads Complete alert (slider) no longer shows. r=mconnor
This commit is contained in:
parent
046dce3b9e
commit
bdbb08e5ac
@ -1390,8 +1390,11 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
||||
|
||||
mPercentComplete = 100;
|
||||
|
||||
// We can safely remove it from the current downloads
|
||||
mDownloadManager->RemoveDownloadFromCurrent(this);
|
||||
|
||||
// Master pref to control this function.
|
||||
PRBool showTaskbarAlert = PR_FALSE;
|
||||
PRBool showTaskbarAlert = PR_TRUE;
|
||||
if (pref)
|
||||
pref->GetBoolPref(PREF_BDM_SHOWALERTONCOMPLETE, &showTaskbarAlert);
|
||||
|
||||
@ -1430,9 +1433,6 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
||||
}
|
||||
}
|
||||
|
||||
// We can safely remove it from the current downloads
|
||||
mDownloadManager->RemoveDownloadFromCurrent(this);
|
||||
|
||||
if (mDownloadState != nsIXPInstallManagerUI::INSTALL_INSTALLING)
|
||||
SetState(nsIDownloadManager::DOWNLOAD_FINISHED);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user