Bug 697078 - Add a toast notification indicating start of download on download start [r=wesj]

This commit is contained in:
Mark Finkle 2011-10-26 14:32:18 -04:00
parent 1b40e476e5
commit e3d4a96476
2 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,8 @@ var Downloads = {
this._dlmgr = Cc["@mozilla.org/download-manager;1"].getService(Ci.nsIDownloadManager);
this._progressAlert = new AlertDownloadProgressListener();
this._dlmgr.addListener(this._progressAlert);
NativeWindow.toast.show(Strings.browser.GetStringFromName("alertDownloadsToast"), "long");
}
} else if (aTopic == "dl-done") {
msgKey = "alertDownloadsDone";

View File

@ -107,6 +107,7 @@ alertDownloadsDone=%S has finished downloading
alertCantOpenDownload=Can't open file. Tap to save it.
alertDownloadsSize=Download too big
alertDownloadsNoSpace=Not enough storage space
alertDownloadsToast=Download started…
downloadCancelPromptTitle=Cancel Download
downloadCancelPromptMessage=Do you want to cancel this download?