Skip to content

Commit 7b95204

Browse files
author
kenhughlee
committed
added back about menu
1 parent e4e1ed5 commit 7b95204

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

main.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const BrowserWindow = electron.BrowserWindow
1212
const IPC = require('electron').ipcMain;
1313
const { dialog } = require('electron');
1414
const Menu = electron.Menu;
15-
// const openAboutWindow = require('about-window').default;
15+
const openAboutWindow = require('about-window').default;
1616

1717
// required node modules
1818
const path = require('path');
@@ -48,31 +48,31 @@ function createWindow() {
4848
}))
4949

5050
// About React-Primer window in menu
51-
// const menu = Menu.buildFromTemplate([
52-
// {
53-
// label: 'React Primer',
54-
// submenu: [
55-
// {
56-
// label: 'About React Primer',
57-
// click: () => openAboutWindow({
58-
// icon_path: path.join(__dirname, './assets/icons/png/256x256.png'),
59-
// copyright: 'Copyright © 2017 React Primer. All Rights Reserved.',
60-
// homepage: 'http://react-primer.com/',
61-
// bug_report_url: 'https://github.com/ReactPrimer/ReactPrimer/issues',
62-
// description: "React Prototyping Tool"
63-
// })
64-
// },
65-
// {
66-
// label: 'Quit',
67-
// accelerator: 'CmdOrCtrl+Q',
68-
// click: () => {
69-
// app.quit();
70-
// }
71-
// },
72-
// ]
73-
// }
74-
// ]);
75-
// Menu.setApplicationMenu(menu);
51+
const menu = Menu.buildFromTemplate([
52+
{
53+
label: 'React Primer',
54+
submenu: [
55+
{
56+
label: 'About React Primer',
57+
click: () => openAboutWindow({
58+
icon_path: path.join(__dirname, './assets/icons/png/256x256.png'),
59+
copyright: 'Copyright © 2017 React Primer. All Rights Reserved.',
60+
homepage: 'http://react-primer.com/',
61+
bug_report_url: 'https://github.com/ReactPrimer/ReactPrimer/issues',
62+
description: "React Prototyping Tool"
63+
})
64+
},
65+
{
66+
label: 'Quit',
67+
accelerator: 'CmdOrCtrl+Q',
68+
click: () => {
69+
app.quit();
70+
}
71+
},
72+
]
73+
}
74+
]);
75+
Menu.setApplicationMenu(menu);
7676

7777
// Open the DevTools.
7878
// mainWindow.webContents.openDevTools()

0 commit comments

Comments
 (0)