From 4f1f0add274bb423caf5b104781d1a5fc7156105 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 13 Jun 2016 10:52:12 +0900 Subject: [PATCH] docs: Reword the requirement of setApplication Menu --- docs/api/menu.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/api/menu.md b/docs/api/menu.md index 0432360..cb5bbd6 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -206,14 +206,7 @@ The `menu` class has the following methods: Sets `menu` as the application menu on OS X. On Windows and Linux, the `menu` will be set as each window's top menu. -**NOTE** if calling from the main process you can not call this function until after you've recevied the `'ready'` event from the application. - -``` -app.on('ready', () => { - Menu.setApplicationMenu(menu); - ... -}); -``` +**Note:** This API has to be called after the `ready` event of `app` module. ### `Menu.sendActionToFirstResponder(action)` _OS X_ -- 2.7.4