Regarding https://github.com/atom/atom/issues/3204.
type: 'separator'
},
{
+ label: 'Services',
+ submenu: []
+ },
+ {
+ type: 'separator'
+ },
+ {
label: 'Hide Atom Shell',
accelerator: 'Command+H',
selector: 'hide:'
[NSApp setWindowsMenu:submenu];
else if ([[item title] isEqualToString:@"Help"])
[NSApp setHelpMenu:submenu];
+ if ([[item title] isEqualToString:@"Services"] &&
+ [submenu numberOfItems] == 0)
+ [NSApp setServicesMenu:submenu];
} else {
// The MenuModel works on indexes so we can't just set the command id as the
// tag like we do in other menus. Also set the represented object to be