mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
added separator for submenu
This commit is contained in:
@@ -37,7 +37,10 @@ class ContextMenuManager
|
||||
if typeof commandOrSubmenu is 'object'
|
||||
submenu = [];
|
||||
for submenuLabel, command of commandOrSubmenu
|
||||
submenu.push({label: submenuLabel, command: command})
|
||||
if submenuLabel is command is '-'
|
||||
submenu.push({type: 'separator'});
|
||||
else
|
||||
submenu.push({label: submenuLabel, command: command})
|
||||
@addBySelector(selector, {label: label, submenu: submenu}, {devMode})
|
||||
else
|
||||
if label is commandOrSubmenu is '-'
|
||||
|
||||
Reference in New Issue
Block a user