mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Update src/menu-helpers.js
Co-authored-by: Sadick <sadickjunior@gmail.com>
This commit is contained in:
@@ -96,8 +96,6 @@ function cloneMenuItem(item) {
|
||||
'afterGroupContaining'
|
||||
);
|
||||
if (item.id === null || item.id === undefined) {
|
||||
// item.id is internally used by the function defined in this file, because `atom-i18n` localize item.label.
|
||||
// cloneMenuItem() create menus from template (menu_{darwin, linux, win32}.cson), then `atom-i18n` can localize menu.
|
||||
item.id = normalizeLabel(item.label);
|
||||
}
|
||||
if (item.submenu != null) {
|
||||
|
||||
Reference in New Issue
Block a user