зеркало из https://github.com/mozilla/pjs.git
Bug 258277 - Add menu item to Check for Updates. r=mconnor,a=mkaply
This commit is contained in:
Родитель
5faac92152
Коммит
d940f877c4
|
@ -410,6 +410,10 @@
|
|||
<menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"
|
||||
key="key_viewInfo" command="View:PageInfo"/>
|
||||
#endif
|
||||
<menuseparator id="updateSeparator"/>
|
||||
<menuitem id="updateItem" label="&updateMenu.label;"
|
||||
accesskey="&updateMenu.accesskey;"
|
||||
oncommand="checkForUpdates();"/>
|
||||
<menuseparator id="sanitizeSeparator"/>
|
||||
<menuitem id="sanitizeItem"
|
||||
accesskey="&sanitizeCmd.accesskey;" label="&sanitizeCmd.label;"
|
||||
|
|
|
@ -5799,3 +5799,12 @@ missingPluginInstaller.prototype.observe = function(aSubject, aTopic, aData){
|
|||
}
|
||||
}
|
||||
var gMissingPluginInstaller = new missingPluginInstaller();
|
||||
|
||||
function checkForUpdates() {
|
||||
var updates = Components.classes["@mozilla.org/updates/update-service;1"]
|
||||
.getService(Components.interfaces.nsIUpdateService);
|
||||
updates.checkForUpdates([], 0, Components.interfaces.nsIUpdateItem.TYPE_ANY,
|
||||
Components.interfaces.nsIUpdateService.SOURCE_EVENT_USER,
|
||||
window);
|
||||
}
|
||||
|
||||
|
|
|
@ -124,6 +124,8 @@
|
|||
<!ENTITY themes.label "Themes">
|
||||
<!ENTITY themes.tooltip "Change the Theme">
|
||||
<!ENTITY themes.accesskey "T">
|
||||
<!ENTITY updateMenu.label "Check for Updates...">
|
||||
<!ENTITY updateMenu.accesskey "U">
|
||||
|
||||
<!ENTITY javaConsoleCmd.label "Java Console">
|
||||
<!ENTITY javaConsoleCmd.accesskey "J">
|
||||
|
|
Загрузка…
Ссылка в новой задаче