How to hide Electron.js menu bar


Jerry

I am trying to remove the electron menu bar from a window. i use this

myWindow.isMenuBarVisible(false);

But it doesn't work. Setting the 'AutoHideMenuBar' property works, but only hides the menu until the alt key is held down.

What is the correct way to remove the electron menu bar?

Jayaru

You cannot use isMenuBarVisible() to change the visibility of the menu . It can only tell you if the menu is visible.

isMenuBarVisible()Returns Boolean - whether the menu bar is visible.

Try setMenu(null) .

setMenu(menu)Will be set menuto the window's menu bar, setting it to nullwill remove the menu bar.

Related


How to hide the menu bar under Linux in Electron 4.0.1

Arnold Rimmer In electron version 1.8.7, I can do this: .on('browser-window-created', (e, window) => { window.setMenu(null); }) But in electron 4.0.1 this doesn't seem to work anymore. Pretselli It should work the same way, but it looks like there is a bu

How to hide the menu bar in Geany

nightcod3r When configuring Lubuntu 14.04.5 live version, I need to open the lightweight editor in a robust way, for this I need to use the menu bar, so I can only save the file I want to edit by pressing a hotkey. In the preferences, other bars can be hidden,

How to show and hide the menu bar

Foysal Uddin Bony Check out the design of this menu : http://jordanek.eu/aktual/index6.html where I made a menu (on the left) that has some functions, for example, click on the white bar "Vyrobce", and single Clicking on the yellow bar "Vyrobce" will appear an

How to show and hide the menu bar

Foysal Uddin Bony Check out the design of this menu : http://jordanek.eu/aktual/index6.html where I made a menu (on the left) that has some functions, for example, click on the white bar "Vyrobce", and single Clicking on the yellow bar "Vyrobce" will appear an

How to hide the menu bar in Geany

nightcod3r When configuring Lubuntu 14.04.5 live version, I need to open a lightweight editor in a robust way, for this I need to use the menu bar, so I can only save the file I want to edit by pressing a hotkey. In the preferences, other bars can be hidden, b

How to hide the menu bar in Geany

nightcod3r When configuring Lubuntu 14.04.5 live version, I need to open a lightweight editor in a robust way, for this I need to use the menu bar, so I can only save the file I want to edit by pressing a hotkey. In the preferences, other bars can be hidden, b

How to show and hide the menu bar

Foysal Uddin Bony Check out the design of this menu : http://jordanek.eu/aktual/index6.html where I made a menu (on the left) that has some functions, for example, click on the white bar "Vyrobce", and single Clicking on the yellow bar "Vyrobce" will appear an

How to hide the menu in the second window of Electron?

Morphine Cloud I'm making a small test application using Electron, below is the code. When you click on the aboutin menu, a new window will appear. How can I make the menu button disappear only in this window? Although this shouldn't happen in the main window.

How to hide menu items in action bar?

Zoltán stirring I have an action bar with menu items. How can I hide/show that menu item? This is what I want to do: MenuItem item = (MenuItem) findViewById(R.id.addAction); item.setVisible(false); this.invalidateOptionsMenu(); dance Get a MenuItempointer to

How to hide menu items in Android action bar?

Marros 1515 My goal is to hide one menu item in the action bar and show another menu item after the menu item is clicked. In my application I am using Toolbar. I've searched many other questions but haven't found what I need. Any help would be greatly apprecia

How to hide the menu bar in Visual Studio Code?

Gerardo Bautista How to hide the menu bar in Visual Studio Code? I can't find a command to do this. In some applications or browsers, the alt key is used , but I can't find a command or option to hide it in the menu bar. can you help me? 。 ifconfig You can hid

How to hide menu items in action bar?

Zoltán stirring I have an action bar with menu items. How can I hide/show that menu item? This is what I want to do: MenuItem item = (MenuItem) findViewById(R.id.addAction); item.setVisible(false); this.invalidateOptionsMenu(); dance Get a MenuItempointer to

How to hide menu items in Android action bar?

Marros 1515 My goal is to hide one menu item in the action bar and show another menu item after the menu item is clicked. In my application I am using Toolbar. I've searched many other questions but haven't found what I need. Any help would be greatly apprecia

How to hide menu items in Android action bar?

Marros 1515 My goal is to hide one menu item in the action bar and show another menu item after the menu item is clicked. In my application I am using Toolbar. I've searched many other questions but haven't found what I need. Any help would be greatly apprecia

How to hide the menu bar in Visual Studio Code?

Gerardo Bautista How to hide the menu bar in Visual Studio Code? I can't find a command to do this. In some applications or browsers, the alt key is used , but I can't find a command or option to hide it in the menu bar. can you help me? 。 ifconfig You can hid

How to hide the menu bar in Visual Studio Code?

Gerardo Bautista How to hide the menu bar in Visual Studio Code? I can't find a command to do this. In some applications or browsers, the alt key is used , but I can't find a command or option to hide it in the menu bar. can you help me? 。 ifconfig You can hid

How to hide menu bar in cocoa app?

chu How do you programmatically hide the menu bar in a cocoa app? I want to make full use of the screen area. chu I know of two ways to do this. 1 In Cocoa, you can call NSMenu class methods setMenuBarVisible:to show or hide the menu bar. As of this writing, t

How to hide menu bar in cocoa app?

chu How do you programmatically hide the menu bar in a cocoa app? I want to make full use of the screen area. chu I know of two ways to do this. 1 In Cocoa, you can call NSMenu class methods setMenuBarVisible:to show or hide the menu bar. As of this writing, t

How to hide menu bar in Cocoa application?

ugakaka How do you programmatically hide the menu bar in a cocoa app? I want to make full use of the screen area. ugakaka I know of two good ways to do this. 1 In Cocoa, you can call NSMenu class methods setMenuBarVisible:to show or hide the menu bar. As of th

How to hide the menu bar for a specific frame in emacs?

William Shuster I have emacs setup to start as a daemon on login( emacs --daemon) . When editing files, I start the graphical client ( emacsclient) or when working in the terminal, I use the terminal client ( emacsclient -t). I want to enable the menu bar in t

How to hide the menu bar for a specific frame in emacs?

Wilhelm Schuster I have emacs setup to start as a daemon on login( emacs --daemon) . When editing files, I start the graphical client ( emacsclient) or use the terminal client ( emacsclient -t) when working in the terminal. I want to enable the menu bar in the

How to hide the search bar along with the Wordpress menu

username I have a wordpress menu in php and everything works fine, but i have created a multisite wordpress, if there is no menu in the wordpress installation, i want it to show nothing, including search, my code when needed, and in Don't show anything when no

Android - How to hide menu button in action bar

bob I need to hide the menu button in the action bar, how can I hide it in the action bar on Android? My minSdkVersion is 7 and I am using support-v7-appcompat. Most used software If you mean the action bar overflow (three-dot affordability), you can "hide it"

How to hide menu items in action bar?

Zoltán stirring I have an action bar with menu items. How can I hide/show that menu item? This is what I want to do: MenuItem item = (MenuItem) findViewById(R.id.addAction); item.setVisible(false); this.invalidateOptionsMenu(); dance Get a MenuItempointer to

How to hide the menu bar in Visual Studio Code?

Gerardo Bautista How to hide the menu bar in Visual Studio Code? I can't find a command to do this. In some applications or browsers, the alt key is used , but I can't find a command or option to hide it in the menu bar. can you help me? 。 ifconfig You can hid

How to hide menu items in Android action bar?

Marros 1515 My goal is to hide one menu item in the action bar and show another menu item after the menu item is clicked. In my application I am using Toolbar. I've searched many other questions but haven't found what I need. Any help would be greatly apprecia

How to hide menu items in Android action bar?

Marros 1515 My goal is to hide one menu item in the action bar and show another menu item after the menu item is clicked. In my application I am using Toolbar. I've searched many other questions but haven't found what I need. Any help would be greatly apprecia