From 9b979f3b49e8ad8e9e69bb786c06f8909a2f9623 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Tue, 7 Jun 2016 23:40:07 +0100 Subject: [PATCH] Move example to the correct place --- docs/api/tray.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/tray.md b/docs/api/tray.md index 4c4891ef8960..421d4fcf63dc 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -29,12 +29,12 @@ __Platform limitations:__ * When app indicator is used on Linux, the `click` event is ignored. * On Linux in order for changes made to individual `MenuItem`s to take effect, you have to call `setContextMenu` again. For example: -* On Windows it is recommended to use `ICO` icons to get best visual effects. ```javascript contextMenu.items[2].checked = false; appIcon.setContextMenu(contextMenu); ``` +* On Windows it is recommended to use `ICO` icons to get best visual effects. If you want to keep exact same behaviors on all platforms, you should not rely on the `click` event and always attach a context menu to the tray icon.