Add Show option under the Window menu

Window > Show will reveal the mainWindow after it has been closed.

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent 0c8e769c2a
commit d018fa63ff
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -157,11 +157,15 @@ app.on('ready', function() {
setInterval(function() { autoUpdater.checkForUpdates(); }, autoUpdaterInterval); setInterval(function() { autoUpdater.checkForUpdates(); }, autoUpdaterInterval);
} }
createWindow();
let template = require('./menu.js'); let template = require('./menu.js');
const menu = Menu.buildFromTemplate(template) template[3].submenu[3].click = function() {
Menu.setApplicationMenu(menu) mainWindow.show();
};
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
createWindow();
}) })
app.on('before-quit', function() { app.on('before-quit', function() {

@ -137,6 +137,9 @@ if (process.platform === 'darwin') {
label: 'Zoom', label: 'Zoom',
role: 'zoom' role: 'zoom'
}, },
{
label: 'Show',
},
{ {
type: 'separator' type: 'separator'
}, },

Loading…
Cancel
Save