Browse Source

Merge pull request #115 from meriadec/master

Update condition for linux menu on prod
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
f15609f3d4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/main/menu.js

12
src/main/menu.js

@ -19,7 +19,9 @@ const template = [
],
[],
),
...props(process.platform === 'darwin' || __DEV__, [
...props(
process.platform === 'darwin' || __DEV__,
[
{
role: 'window',
submenu: [
@ -38,7 +40,9 @@ const template = [
{
label: 'Main Window Dev Tools',
click() {
const mainWindow = BrowserWindow.getAllWindows().find(w => w.name === 'MainWindow')
const mainWindow = BrowserWindow.getAllWindows().find(
w => w.name === 'MainWindow',
)
if (mainWindow) {
mainWindow.openDevTools({
mode: process.env.DEV_TOOLS_MODE,
@ -63,7 +67,9 @@ const template = [
),
],
},
]),
],
[],
),
]
export default Menu.buildFromTemplate(template)

Loading…
Cancel
Save