Fix menu on non-darwin

This commit is contained in:
lilia 2017-05-04 19:26:04 -07:00 committed by Scott Nonnenberg
parent d85ccbad4f
commit cfb1e62603
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -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);