Add 'activate-with-no-open-windows' event for app.

Fixes #194.
This commit is contained in:
Cheng Zhao 2014-03-05 18:09:44 +08:00
parent a74d3d210d
commit 839a751de5
7 changed files with 33 additions and 0 deletions

View file

@ -66,6 +66,12 @@ must be registered to be opened by your application.
You should call `event.preventDefault()` if you want to handle this event.
## Event: activate-with-no-open-windows
Emitted when the application is activated while there is no opened windows. It
usually happens when user has closed all of application's windows and then
click on the application's dock icon.
## app.quit()
Try to close all windows. If all windows are successfully closed, the