New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserWindow removeMenu method not working on v7.1.1 #21088
Comments
I've also tried this by cloning electron/electron-quick-start which is using v7.1.1 and added |
Is this related to #15901? |
@jacobq Can't tell, i didnt used v4.0.0 betas. btw |
FWIW, I encountered the same behavior in Linux ( A quick test suggests that v7.1.1 behaves as follows:
1menu still accessible via keyboard shortcut (by design) mainWindow.webContents.once('did-finish-load', () => {
mainWindow.setMenuBarVisibility(false);
}) |
|
Electron changes a lot in short amounts of time. It's like learning to use a whole new tool every update. Don't know whether that is good or bad. Not very backward compatible. |
this it work for me@ electron 7.1.1 const {app, BrowserWindow, Menu} = require(‘electron’) Menu.setApplicationMenu(false) |
This also worked for me @electron 7.1.2 |
@zcbenz re-assigning this since it's the original bug corresponding to the one assigned to you in the Releases WG meeting |
Not only removeMenu is not working, setMenu is not working for me too on 7.1.2. |
I have also found that neither Whilst setting |
@yarhamjohn You can open the developer with |
Preflight Checklist
Issue Details
BrowserWindow method
removeMenu()
is not working on v7.1.1. The only change made was upgrading Electron version.https://electronjs.org/docs/api/browser-window#winremovemenu-linux-windows
Expected Behavior
Menu Bar not visible.
Actual Behavior
Menu Bar is visible.
To Reproduce
For me, just update Electron version.
Screenshots
With version 7.1.1:
With version 6.0.3:
The text was updated successfully, but these errors were encountered: