Commit 9f71bb15 authored by Medicean's avatar Medicean

手动检查更新菜单

parent 34d61d1a
......@@ -79,6 +79,12 @@ class Menubar {
click: event.sender.send.bind(event.sender, 'menubar', 'plugin-store')
}, {
type: 'separator'
}, {
label: LANG['main']['update'],
accelerator: 'Shift+CmdOrCtrl+U',
click: event.sender.send.bind(event.sender, 'menubar', 'check-update')
},{
type: 'separator'
}, {
label: LANG['main']['quit'],
accelerator: 'Command+Q',
......
......@@ -376,6 +376,9 @@ ipcRenderer
});
antSword.reloadPlug();
antSword['menubar'].reg('check-update', ()=>{
antSword.ipcRenderer.send('check-update');
});
// 检查更新
setTimeout(
antSword.ipcRenderer.send.bind(antSword.ipcRenderer, 'check-update'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment