meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
49 additions and
43 deletions
-
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) |
|
|
|