browser-addons.js (palemoon-29.4.1-source.tar.xz) | : | browser-addons.js (palemoon-29.4.2-source.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 205 | skipping to change at line 205 | |||
var needsRestart = installInfo.installs.some(function(i) { | var needsRestart = installInfo.installs.some(function(i) { | |||
return i.addon.pendingOperations != AddonManager.PENDING_NONE; | return i.addon.pendingOperations != AddonManager.PENDING_NONE; | |||
}); | }); | |||
if (needsRestart) { | if (needsRestart) { | |||
messageString = gNavigatorBundle.getString("addonsInstalledNeedsRestar t"); | messageString = gNavigatorBundle.getString("addonsInstalledNeedsRestar t"); | |||
action = { | action = { | |||
label: gNavigatorBundle.getString("addonInstallRestartButton"), | label: gNavigatorBundle.getString("addonInstallRestartButton"), | |||
accessKey: gNavigatorBundle.getString("addonInstallRestartButton.acc esskey"), | accessKey: gNavigatorBundle.getString("addonInstallRestartButton.acc esskey"), | |||
callback: function() { | callback: function() { | |||
Application.restart(); | Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppSta rtup.eRestart); | |||
} | } | |||
}; | }; | |||
} else { | } else { | |||
messageString = gNavigatorBundle.getString("addonsInstalled"); | messageString = gNavigatorBundle.getString("addonsInstalled"); | |||
action = null; | action = null; | |||
} | } | |||
messageString = PluralForm.get(installInfo.installs.length, messageStrin g); | messageString = PluralForm.get(installInfo.installs.length, messageStrin g); | |||
messageString = messageString.replace("#1", installInfo.installs[0].name ); | messageString = messageString.replace("#1", installInfo.installs[0].name ); | |||
messageString = messageString.replace("#2", installInfo.installs.length) ; | messageString = messageString.replace("#2", installInfo.installs.length) ; | |||
skipping to change at line 371 | skipping to change at line 371 | |||
return; | return; | |||
} | } | |||
let messageString = gNavigatorBundle.getFormattedString("lwthemeNeedsRes tart.message", | let messageString = gNavigatorBundle.getFormattedString("lwthemeNeedsRes tart.message", | |||
[aAddon.name], 1 ); | [aAddon.name], 1 ); | |||
let action = { | let action = { | |||
label: gNavigatorBundle.getString("lwthemeNeedsRestart.button"), | label: gNavigatorBundle.getString("lwthemeNeedsRestart.button"), | |||
accessKey: gNavigatorBundle.getString("lwthemeNeedsRestart.accesskey") , | accessKey: gNavigatorBundle.getString("lwthemeNeedsRestart.accesskey") , | |||
callback: function () { | callback: function () { | |||
Application.restart(); | Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStart up.eRestart); | |||
} | } | |||
}; | }; | |||
let options = { timeout: Date.now() + 30000 }; | let options = { timeout: Date.now() + 30000 }; | |||
PopupNotifications.show(gBrowser.selectedBrowser, "addon-theme-change", | PopupNotifications.show(gBrowser.selectedBrowser, "addon-theme-change", | |||
messageString, "addons-notification-icon", | messageString, "addons-notification-icon", | |||
action, null, options); | action, null, options); | |||
}, | }, | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |