Browse Source

Update condition for linux menu on prod

master
meriadec 7 years ago
parent
commit
ea6c5064a7
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  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