Windowsのメニューバーを自動的に隠す

This commit is contained in:
Yuya Ochiai 2015-10-09 23:55:26 +09:00
parent e86c7f31f6
commit 964bd104fb

View file

@ -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() {