mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
BrowserWindow.SetMenu(null) not working #376
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shazha on GitHub (Aug 9, 2019).
Thanks for this great project, it's really helpful 😃
Version: 5.22.14
.Net Core SDK version: latest 2.2 release
Target: Windows 10
The menu bar is supposed to be removed completely by invoking
BrowerWindow.SetMenu(null)orMenu.setApplicationMenu(null). However, the default menu, which contains standard items such asFileandEdit, is not suppressed and the menu bar is not removed from created BrowserWindow on Windows.@default-writer commented on GitHub (Aug 21, 2019):
@GregorBiswanger
The menu bar is supposed to be removed completely by invoking
browserWindow.RemoveMenu();See also win.removeMenu()
Example:
@GregorBiswanger commented on GitHub (Aug 21, 2019):
Big thanks to @hack2root for your contribution!
This new feature comes with the next version 5.22.15.