Fix a wrong check in emitting 'activate-with-no-open-windows' event.
This commit is contained in:
parent
ae776b523c
commit
a3e9ff67b0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue