Bug 529293: Installation of Addons does not move user to addons manager [r=gavin.sharp]

This commit is contained in:
Mark Finkle 2009-11-17 15:21:33 -05:00
Родитель a3687d7534
Коммит 5b76f71bad
2 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -763,13 +763,20 @@ XPInstallDownloadManager.prototype = {
if (ExtensionsView.visible)
return;
let message = strings.getString("alertAddonsDone");
let message = strings.getString("alertAddonsInstalled");
if (this._succeeded.length == 0 && this._failed.length > 0)
message = strings.getString("alertAddonsFail");
var alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService);
let observer = {
observe: function (aSubject, aTopic, aData) {
if (aTopic == "alertclickcallback")
BrowserUI.showPanel("addons-container");
}
};
let alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService);
alerts.showAlertNotification(URI_GENERIC_ICON_XPINSTALL, strings.getString("alertAddons"),
message, false, "", null);
message, true, "", observer);
},
onDownloadProgress: function xpidm_onDownloadProgress(aAddon, aValue, aMaxValue) {

Просмотреть файл

@ -40,7 +40,7 @@ downloadsMonthDate=#1 #2
# Alerts
alertAddons=Add-ons
alertAddonsInstalling=Installing add-on
alertAddonsDone=Installation complete
alertAddonsInstalled=Installation complete. Restart required.
alertAddonsFail=Installation failed
# LOCALIZATION NOTE (alertAddonsDisabled): Semi-colon list of plural forms.