From 87a30072f23f2f471271d066d47184d46ef7f886 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Fri, 26 Aug 2016 01:17:50 +0900 Subject: [PATCH] Add OS X features for #261 --- src/main/menus/tray.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/menus/tray.js b/src/main/menus/tray.js index 2ac3ef4f..9a5d7786 100644 --- a/src/main/menus/tray.js +++ b/src/main/menus/tray.js @@ -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'