Merge pull request #4498 from destan/patch-2

add a new platform definition for linux
This commit is contained in:
Cheng Zhao 2016-02-16 23:08:34 +08:00
Родитель 61a9316f67 afacca252e
Коммит 18e7825ff3
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -32,6 +32,12 @@ __Platform limitations:__
install `libappindicator1` to make the tray icon work.
* App indicator will only be shown when it has a context menu.
* 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:
```javascript
appIcon.menu.items[2].checked = false;
appIcon.setContextMenu(trayIcon.menu);
```
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.