Merge pull request #497 from enrique-ramirez/fix-dock-icon-open

Removing deprecated 'activate-with-no-open-windows' event
This commit is contained in:
Juan 2015-11-28 09:04:04 -08:00
commit 242b54eea6

View file

@ -341,8 +341,9 @@ class Application
# win = BrowserWindow.fromWebContents(event.sender)
event.sender.send('inline-styles-result', {body, clientId})
app.on 'activate-with-no-open-windows', (event) =>
@openWindowsForTokenState()
app.on 'activate', (event, hasVisibleWindows) =>
if not hasVisibleWindows
@openWindowsForTokenState()
event.preventDefault()
ipcMain.on 'update-application-menu', (event, template, keystrokesByCommand) =>