From 964bd104fbf3dfabbb67f761326e8f4d866fd15f Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Fri, 9 Oct 2015 23:55:26 +0900 Subject: [PATCH] =?UTF-8?q?Windows=E3=81=AE=E3=83=A1=E3=83=8B=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E3=83=90=E3=83=BC=E3=82=92=E8=87=AA=E5=8B=95=E7=9A=84?= =?UTF-8?q?=E3=81=AB=E9=9A=A0=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.js b/main.js index ea52690f..3df4333b 100644 --- a/main.js +++ b/main.js @@ -18,6 +18,14 @@ app.on('window-all-closed', function() { } }); +// For win32, auto-hide menu bar. +app.on('browser-window-created', function(event, window){ + if(process.platform === 'win32'){ + window.setAutoHideMenuBar(true); + window.setMenuBarVisibility(false); + } +}); + // This method will be called when Electron has finished // initialization and is ready to create browser windows. app.on('ready', function() {