Update src/menu-helpers.js

Co-authored-by: Sadick <sadickjunior@gmail.com>
This commit is contained in:
sibaki_girls
2021-06-25 06:49:31 +09:00
committed by GitHub
parent 2e4956f3c9
commit fd264e3b99

View File

@@ -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) {