added file menu item
This commit is contained in:
parent
4b5279500a
commit
0a4f78190d
1 changed files with 5 additions and 5 deletions
|
@ -2,6 +2,10 @@ import { app, Menu, shell } from 'electron';
|
|||
|
||||
export default () => {
|
||||
const template = [
|
||||
{
|
||||
label: 'File',
|
||||
submenu: [{ role: 'quit', accelerator: 'CmdOrCtrl+Q' }],
|
||||
},
|
||||
{
|
||||
label: 'Edit',
|
||||
submenu: [
|
||||
|
@ -27,11 +31,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
role: 'window',
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'close' },
|
||||
{ role: 'quit', accelerator: 'CmdOrCtrl+Q' },
|
||||
],
|
||||
submenu: [{ role: 'minimize' }, { role: 'close' }],
|
||||
},
|
||||
{
|
||||
role: 'help',
|
||||
|
|
Loading…
Reference in a new issue