Add OS X features for #261
This commit is contained in:
@@ -24,10 +24,15 @@ function createTemplate(mainWindow, config) {
|
|||||||
}), {
|
}), {
|
||||||
type: 'separator'
|
type: 'separator'
|
||||||
}, {
|
}, {
|
||||||
label: 'Settings',
|
label: process.platform !== 'darwin' ? 'Settings' : 'Preferences...',
|
||||||
click: () => {
|
click: () => {
|
||||||
mainWindow.loadURL('file://' + __dirname + '/browser/settings.html');
|
mainWindow.loadURL('file://' + __dirname + '/browser/settings.html');
|
||||||
showOrRestore(mainWindow);
|
showOrRestore(mainWindow);
|
||||||
|
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
app.dock.show();
|
||||||
|
mainWindow.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
type: 'separator'
|
type: 'separator'
|
||||||
|
Reference in New Issue
Block a user