electron disable menu code example
Example 1: electron remove default menu
//Remove default menu for every new window
electron.app.on('browser-window-created',function(e,window) {
window.setMenu(null);
});
Example 2: electron hide top bar
mainWindow.setMenuBarVisibility(false) //partially
Example 3: how to remove menu bar in electron app without removing frame
removeMenu: true;
Example 4: electron disable menu
my_window.setMenu(false);