Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 665450d

Browse files
committed
Merge pull request #201 from adobe/glenn/issue-2770
Revert "Don't create tags for separator items."
2 parents 7ee4e99 + b76b53e commit 665450d

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

appshell/appshell_extensions_mac.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,7 @@ int32 AddMenuItem(CefRefPtr<CefBrowser> browser, ExtensionString parentCommand,
798798
}
799799
int32 tag = NativeMenuModel::getInstance(getMenuParent(browser)).getTag(command);
800800
if (tag == kTagNotFound) {
801-
if (!isSeparator) {
802-
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
803-
}
801+
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
804802
} else {
805803
return NO_ERROR;
806804
}

appshell/appshell_extensions_win.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,9 +1249,7 @@ int32 AddMenuItem(CefRefPtr<CefBrowser> browser, ExtensionString parentCommand,
12491249

12501250
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getTag(command);
12511251
if (tag == kTagNotFound) {
1252-
if (!isSeparator) {
1253-
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
1254-
}
1252+
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
12551253
} else {
12561254
return NO_ERROR;
12571255
}

0 commit comments

Comments
 (0)