Bug 381801 - Downloads Complete alert (slider) no longer shows. r=mconnor

This commit is contained in:
sdwilsh@shawnwilsher.com 2007-05-31 18:39:53 -07:00
parent 046dce3b9e
commit bdbb08e5ac

View File

@ -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