Merge pull request #5922 from ekonstantinidis/patch-1

Move example to the correct place
This commit is contained in:
Cheng Zhao 2016-06-08 01:57:56 +00:00 committed by GitHub
commit 013bd004c9

View file

@ -29,12 +29,12 @@ __Platform limitations:__
* When app indicator is used on Linux, the `click` event is ignored. * 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, * On Linux in order for changes made to individual `MenuItem`s to take effect,
you have to call `setContextMenu` again. For example: you have to call `setContextMenu` again. For example:
* On Windows it is recommended to use `ICO` icons to get best visual effects.
```javascript ```javascript
contextMenu.items[2].checked = false; contextMenu.items[2].checked = false;
appIcon.setContextMenu(contextMenu); 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 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. rely on the `click` event and always attach a context menu to the tray icon.