Merge pull request #2777 from atom/dock-clicked

Implement 'activate' event for app.
This commit is contained in:
Cheng Zhao 2015-09-15 11:17:41 +08:00
commit fe2219a635
8 changed files with 24 additions and 20 deletions

View file

@ -45,6 +45,7 @@ app.getHomeDir = -> @getPath 'home'
app.getDataPath = -> @getPath 'userData'
app.setDataPath = (path) -> @setPath 'userData', path
app.resolveProxy = -> @defaultSession.resolveProxy.apply @defaultSession, arguments
app.on 'activate', (event, hasVisibleWindows) -> @emit 'activate-with-no-open-windows' if hasVisibleWindows
# Session wrapper.
sessionBindings._setWrapSession wrapSession