From 0a4f78190d4ce5bca47b848a76f78b98cb5d1c99 Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Sat, 31 Mar 2018 01:14:13 +0700 Subject: [PATCH] added file menu item --- src/main/menu/setupBarMenu.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/menu/setupBarMenu.js b/src/main/menu/setupBarMenu.js index fadefaa29..08fc9fab2 100644 --- a/src/main/menu/setupBarMenu.js +++ b/src/main/menu/setupBarMenu.js @@ -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',