added file menu item

This commit is contained in:
YULIUS KURNIAWAN KRISTIANTO 2018-03-31 01:14:13 +07:00 committed by GitHub
parent 4b5279500a
commit 0a4f78190d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',