📝 Document that setApplicationMenu(null) has no effect on macOS
This commit is contained in:
parent
1c80102218
commit
6169ccd1e2
1 changed files with 5 additions and 3 deletions
|
@ -16,9 +16,11 @@ The `menu` class has the following static methods:
|
||||||
|
|
||||||
* `menu` Menu
|
* `menu` Menu
|
||||||
|
|
||||||
Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu`
|
Sets `menu` as the application menu on macOS. On Windows and Linux, the
|
||||||
will be set as each window's top menu. Setting it to `null` will remove the
|
`menu` will be set as each window's top menu.
|
||||||
menu bar.
|
|
||||||
|
Passing `null` will remove the menu bar on Windows and Linux but has no
|
||||||
|
effect on macOS.
|
||||||
|
|
||||||
**Note:** This API has to be called after the `ready` event of `app` module.
|
**Note:** This API has to be called after the `ready` event of `app` module.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue