Fix menu on non-darwin
This commit is contained in:
8
main.js
8
main.js
@@ -164,9 +164,11 @@ app.on('ready', function() {
|
|||||||
createWindow();
|
createWindow();
|
||||||
|
|
||||||
let template = require('./menu.js');
|
let template = require('./menu.js');
|
||||||
template[3].submenu[3].click = function() {
|
if (process.platform === 'darwin') {
|
||||||
mainWindow.show();
|
template[3].submenu[3].click = function() {
|
||||||
};
|
mainWindow.show();
|
||||||
|
};
|
||||||
|
}
|
||||||
const menu = Menu.buildFromTemplate(template);
|
const menu = Menu.buildFromTemplate(template);
|
||||||
Menu.setApplicationMenu(menu);
|
Menu.setApplicationMenu(menu);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user