mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
menu: add option to force update all plugins
This commit is contained in:
parent
60f0887c2a
commit
79eb6e9dff
1 changed files with 12 additions and 1 deletions
13
menu.js
13
menu.js
|
|
@ -6,7 +6,6 @@ const appName = app.getName();
|
||||||
// based on and inspired by
|
// based on and inspired by
|
||||||
// https://github.com/sindresorhus/anatine/blob/master/menu.js
|
// https://github.com/sindresorhus/anatine/blob/master/menu.js
|
||||||
|
|
||||||
|
|
||||||
module.exports = function createMenu ({ createWindow, updatePlugins }) {
|
module.exports = function createMenu ({ createWindow, updatePlugins }) {
|
||||||
return [
|
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',
|
label: 'Window',
|
||||||
submenu: [
|
submenu: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue