From 1c80102218e8a1b56886996acf192c1bc1d9151c Mon Sep 17 00:00:00 2001 From: Philip Jackson Date: Fri, 31 Mar 2017 16:42:03 +1300 Subject: [PATCH 1/2] :memo: Document passing null to Menu.setApplicationMenu [ci skip] --- docs/api/menu.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 42724e1d4af..13585fef72e 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -17,7 +17,8 @@ The `menu` class has the following static methods: * `menu` Menu Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu` -will be set as each window's top menu. +will be set as each window's top menu. Setting it to `null` will remove the +menu bar. **Note:** This API has to be called after the `ready` event of `app` module. From 6169ccd1e2b4595e083b7a3d38281ed4db638772 Mon Sep 17 00:00:00 2001 From: Philip Jackson Date: Tue, 4 Apr 2017 18:00:20 +1200 Subject: [PATCH 2/2] :memo: Document that setApplicationMenu(null) has no effect on macOS --- docs/api/menu.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 13585fef72e..72d8164270d 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -16,9 +16,11 @@ The `menu` class has the following static methods: * `menu` Menu -Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu` -will be set as each window's top menu. Setting it to `null` will remove the -menu bar. +Sets `menu` as the application menu on macOS. On Windows and Linux, the +`menu` will be set as each window's top menu. + +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.