mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Merge pull request #9681 from atom/mb-fix-dock-icon-click
Avoid using deprecated 'activate-with-no-open-windows' event
This commit is contained in:
@@ -227,9 +227,10 @@ class AtomApplication
|
||||
event.preventDefault()
|
||||
@openUrl({urlToOpen, @devMode, @safeMode})
|
||||
|
||||
app.on 'activate-with-no-open-windows', (event) =>
|
||||
event.preventDefault()
|
||||
@emit('application:new-window')
|
||||
app.on 'activate', (event, hasVisibleWindows) =>
|
||||
unless hasVisibleWindows
|
||||
event.preventDefault()
|
||||
@emit('application:new-window')
|
||||
|
||||
# A request from the associated render process to open a new render process.
|
||||
ipc.on 'open', (event, options) =>
|
||||
|
||||
Reference in New Issue
Block a user