mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Don't popup context menu with no items, fixes #2032.
On OS X popuping an empty context menu would have no effect but on Linux an empty menu container would still be showed.
This commit is contained in:
parent
0ad26c337a
commit
6fa6863244
@ -98,5 +98,6 @@ class ContextMenuManager
|
||||
showForEvent: (event) ->
|
||||
@activeElement = event.target
|
||||
menuTemplate = @combinedMenuTemplateForElement(event.target)
|
||||
return unless menuTemplate?.length > 0
|
||||
@executeBuildHandlers(event, menuTemplate)
|
||||
remote.getCurrentWindow().emit('context-menu', menuTemplate)
|
||||
|
Loading…
Reference in New Issue
Block a user