From: Haojian Wu Date: Wed, 16 Sep 2015 00:36:01 +0000 (+0800) Subject: Fix a wrong check in emitting 'activate-with-no-open-windows' event. X-Git-Tag: v0.33.0~10^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a3e9ff67b0f3697892d009f87fb5d3adc6916e27;p=electron.git Fix a wrong check in emitting 'activate-with-no-open-windows' event. --- diff --git a/atom/browser/api/lib/app.coffee b/atom/browser/api/lib/app.coffee index d1dc3fc6..f5b137eb 100644 --- a/atom/browser/api/lib/app.coffee +++ b/atom/browser/api/lib/app.coffee @@ -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