Make ContextMenu async

This commit is contained in:
Wliu
2017-11-15 11:51:54 +01:00
parent 192cde85a4
commit e941dbd9be

View File

@@ -5,7 +5,7 @@ class ContextMenu
constructor: (template, @atomWindow) ->
template = @createClickHandlers(template)
menu = Menu.buildFromTemplate(template)
menu.popup(@atomWindow.browserWindow)
menu.popup(@atomWindow.browserWindow, {async: true})
# It's necessary to build the event handlers in this process, otherwise
# closures are dragged across processes and failed to be garbage collected