mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-06 13:03:10 +08:00
Merge pull request #497 from enrique-ramirez/fix-dock-icon-open
Removing deprecated 'activate-with-no-open-windows' event
This commit is contained in:
commit
242b54eea6
1 changed files with 3 additions and 2 deletions
|
@ -341,7 +341,8 @@ class Application
|
|||
# win = BrowserWindow.fromWebContents(event.sender)
|
||||
event.sender.send('inline-styles-result', {body, clientId})
|
||||
|
||||
app.on 'activate-with-no-open-windows', (event) =>
|
||||
app.on 'activate', (event, hasVisibleWindows) =>
|
||||
if not hasVisibleWindows
|
||||
@openWindowsForTokenState()
|
||||
event.preventDefault()
|
||||
|
||||
|
|
Loading…
Reference in a new issue