Fix menu on non-darwin
This commit is contained in:
parent
d85ccbad4f
commit
cfb1e62603
1 changed files with 5 additions and 3 deletions
8
main.js
8
main.js
|
@ -164,9 +164,11 @@ app.on('ready', function() {
|
|||
createWindow();
|
||||
|
||||
let template = require('./menu.js');
|
||||
template[3].submenu[3].click = function() {
|
||||
mainWindow.show();
|
||||
};
|
||||
if (process.platform === 'darwin') {
|
||||
template[3].submenu[3].click = function() {
|
||||
mainWindow.show();
|
||||
};
|
||||
}
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
|
|
Loading…
Reference in a new issue