Rename roles
This commit is contained in:
parent
1ab4504e94
commit
dcdc3621ac
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ Role kRolesMap[] = {
|
|||
{ @selector(selectPreviousTab:), "selectprevioustab" },
|
||||
{ @selector(mergeAllWindows:), "mergeallwindows" },
|
||||
{ @selector(moveTabToNewWindow:), "movetabtonewwindow" },
|
||||
{ @selector(clearRecentDocuments:), "clearrecent" },
|
||||
{ @selector(clearRecentDocuments:), "clearrecentdocuments" },
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
@ -218,7 +218,7 @@ NSMenu* swapMenu_;
|
|||
[NSApp setHelpMenu:submenu];
|
||||
else if (role == base::ASCIIToUTF16("services"))
|
||||
[NSApp setServicesMenu:submenu];
|
||||
else if (role == base::ASCIIToUTF16("openrecent"))
|
||||
else if (role == base::ASCIIToUTF16("recentdocuments"))
|
||||
[self replaceSubmenuShowingRecentDocuments:item];
|
||||
} else {
|
||||
// The MenuModel works on indexes so we can't just set the command id as the
|
||||
|
|
|
@ -102,10 +102,10 @@ const roles = {
|
|||
services: {
|
||||
label: 'Services'
|
||||
},
|
||||
openrecent: {
|
||||
recentdocuments: {
|
||||
label: 'Open Recent'
|
||||
},
|
||||
clearrecent: {
|
||||
clearrecentdocuments: {
|
||||
label: 'Clear Menu'
|
||||
},
|
||||
startspeaking: {
|
||||
|
|
Loading…
Add table
Reference in a new issue