Merge pull request #2796 from atom/fix-wrong-check-activate-event

Fix a wrong check in emitting 'activate-with-no-open-windows' event.
This commit is contained in:
Cheng Zhao 2015-09-16 09:04:33 +08:00
commit d8f77e5134

View file

@ -45,7 +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
app.on 'activate', (event, hasVisibleWindows) -> @emit 'activate-with-no-open-windows' if not hasVisibleWindows
# Session wrapper.
sessionBindings._setWrapSession wrapSession