menu: add option to force update all plugins

This commit is contained in:
Guillermo Rauch 2016-07-13 19:07:17 -07:00
parent 60f0887c2a
commit 79eb6e9dff

13
menu.js
View file

@ -6,7 +6,6 @@ const appName = app.getName();
// based on and inspired by
// https://github.com/sindresorhus/anatine/blob/master/menu.js
module.exports = function createMenu ({ createWindow, updatePlugins }) {
return [
{
@ -163,6 +162,18 @@ module.exports = function createMenu ({ createWindow, updatePlugins }) {
}
]
},
{
label: 'Plugins',
submenu: [
{
label: 'Update All Now',
accelerator: 'CmdOrCtrl+Shift+U',
click () {
updatePlugins();
}
}
]
},
{
label: 'Window',
submenu: [