feat: add window removeMenu() method (#16570)
* feat: add window removeMenu() method * chore: remove original method from docs and code * retain backwards compatibility
This commit is contained in:
parent
2f35c98e76
commit
c8c1be7ae5
4 changed files with 24 additions and 3 deletions
|
@ -8,6 +8,15 @@ The `FIXME` string is used in code comments to denote things that should be fixe
|
|||
|
||||
# Planned Breaking API Changes (6.0)
|
||||
|
||||
## `win.setMenu(null)`
|
||||
|
||||
```js
|
||||
// Deprecated
|
||||
win.setMenu(null)
|
||||
// Replace with
|
||||
win.removeMenu()
|
||||
```
|
||||
|
||||
## `electron.screen` in renderer process
|
||||
|
||||
```js
|
||||
|
@ -64,7 +73,7 @@ A new API, `protocol.registerSchemesAsPrivileged` has been added and should be u
|
|||
|
||||
# Planned Breaking API Changes (4.0)
|
||||
|
||||
The following list includes the breaking API changes planned for Electron 4.0.
|
||||
The following list includes the breaking API changes made in Electron 4.0.
|
||||
|
||||
## `app.makeSingleInstance`
|
||||
|
||||
|
|
|
@ -1308,8 +1308,11 @@ Same as `webContents.reload`.
|
|||
|
||||
* `menu` Menu | null
|
||||
|
||||
Sets the `menu` as the window's menu bar, setting it to `null` will remove the
|
||||
menu bar.
|
||||
Sets the `menu` as the window's menu bar.
|
||||
|
||||
#### `win.removeMenu()` _Linux_ _Windows_
|
||||
|
||||
Remove the window's menu bar.
|
||||
|
||||
#### `win.setProgressBar(progress[, options])`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue