зеркало из https://github.com/mozilla/gecko-dev.git
Bug 529293: Installation of Addons does not move user to addons manager [r=gavin.sharp]
This commit is contained in:
Родитель
a3687d7534
Коммит
5b76f71bad
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче