Add OS X features for #261

This commit is contained in:
Yuya Ochiai
2016-08-26 01:17:50 +09:00
parent d3ddef21ba
commit 87a30072f2

View File

@@ -24,10 +24,15 @@ function createTemplate(mainWindow, config) {
}), {
type: 'separator'
}, {
label: 'Settings',
label: process.platform !== 'darwin' ? 'Settings' : 'Preferences...',
click: () => {
mainWindow.loadURL('file://' + __dirname + '/browser/settings.html');
showOrRestore(mainWindow);
if (process.platform === 'darwin') {
app.dock.show();
mainWindow.focus();
}
}
}, {
type: 'separator'