Skip to content

Commit

Permalink
chore: remove original method from docs and code
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 28, 2019
1 parent 258b63f commit 10dbbb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 0 additions & 3 deletions atom/browser/api/atom_api_top_level_window.cc
Expand Up @@ -650,9 +650,6 @@ void TopLevelWindow::SetMenu(v8::Isolate* isolate, v8::Local<v8::Value> value) {
mate::ConvertFromV8(isolate, value, &menu) && !menu.IsEmpty()) {
menu_.Reset(isolate, menu.ToV8());
window_->SetMenu(menu->model());
} else if (value->IsNull()) {
menu_.Reset();
window_->SetMenu(nullptr);
} else {
isolate->ThrowException(
v8::Exception::TypeError(mate::StringToV8(isolate, "Invalid Menu")));
Expand Down
11 changes: 10 additions & 1 deletion docs/api/breaking-changes.md
Expand Up @@ -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
Expand Down Expand Up @@ -59,7 +68,7 @@ Child windows opened with the `nativeWindowOpen` option will always have Node.js

# 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`

Expand Down
2 changes: 1 addition & 1 deletion docs/api/browser-window.md
Expand Up @@ -1308,7 +1308,7 @@ 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_

Expand Down

0 comments on commit 10dbbb1

Please sign in to comment.