Windowsのメニューバーを自動的に隠す
This commit is contained in:
8
main.js
8
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
|
// This method will be called when Electron has finished
|
||||||
// initialization and is ready to create browser windows.
|
// initialization and is ready to create browser windows.
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
|
Reference in New Issue
Block a user