mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Return void from beforeunload handler to allow window unload
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Thomas Johansen
parent
09a296fc0e
commit
db022e7779
@@ -164,7 +164,8 @@ class WindowEventHandler
|
||||
else
|
||||
@applicationDelegate.didCancelWindowUnload()
|
||||
|
||||
confirmed
|
||||
# Returning any non-void value stops the window from unloading
|
||||
return true unless confirmed
|
||||
|
||||
handleWindowUnload: =>
|
||||
@atomEnvironment.destroy()
|
||||
|
||||
Reference in New Issue
Block a user