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(selectPreviousTab:), "selectprevioustab" },
|
||||||
{ @selector(mergeAllWindows:), "mergeallwindows" },
|
{ @selector(mergeAllWindows:), "mergeallwindows" },
|
||||||
{ @selector(moveTabToNewWindow:), "movetabtonewwindow" },
|
{ @selector(moveTabToNewWindow:), "movetabtonewwindow" },
|
||||||
{ @selector(clearRecentDocuments:), "clearrecent" },
|
{ @selector(clearRecentDocuments:), "clearrecentdocuments" },
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -218,7 +218,7 @@ NSMenu* swapMenu_;
|
||||||
[NSApp setHelpMenu:submenu];
|
[NSApp setHelpMenu:submenu];
|
||||||
else if (role == base::ASCIIToUTF16("services"))
|
else if (role == base::ASCIIToUTF16("services"))
|
||||||
[NSApp setServicesMenu:submenu];
|
[NSApp setServicesMenu:submenu];
|
||||||
else if (role == base::ASCIIToUTF16("openrecent"))
|
else if (role == base::ASCIIToUTF16("recentdocuments"))
|
||||||
[self replaceSubmenuShowingRecentDocuments:item];
|
[self replaceSubmenuShowingRecentDocuments:item];
|
||||||
} else {
|
} else {
|
||||||
// The MenuModel works on indexes so we can't just set the command id as the
|
// The MenuModel works on indexes so we can't just set the command id as the
|
||||||
|
|
|
@ -102,10 +102,10 @@ const roles = {
|
||||||
services: {
|
services: {
|
||||||
label: 'Services'
|
label: 'Services'
|
||||||
},
|
},
|
||||||
openrecent: {
|
recentdocuments: {
|
||||||
label: 'Open Recent'
|
label: 'Open Recent'
|
||||||
},
|
},
|
||||||
clearrecent: {
|
clearrecentdocuments: {
|
||||||
label: 'Clear Menu'
|
label: 'Clear Menu'
|
||||||
},
|
},
|
||||||
startspeaking: {
|
startspeaking: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue