Add Tray.destroy() API, fixes #871

This commit is contained in:
Cheng Zhao 2014-11-28 18:06:51 +08:00
parent 86cf5e0028
commit f6c66a7374
3 changed files with 49 additions and 12 deletions

View file

@ -54,6 +54,10 @@ Emitted when the tray icon is double clicked.
This is only implmented on OS X.
### Tray.destroy()
Destroys the tray icon immediately.
### Tray.setImage(image)
* `image` [Image](image.md)