Use else if
This commit is contained in:
parent
f0bff74995
commit
0ba2fa5cba
1 changed files with 1 additions and 2 deletions
|
@ -166,8 +166,7 @@ Role kRolesMap[] = {
|
||||||
[NSApp setWindowsMenu:submenu];
|
[NSApp setWindowsMenu:submenu];
|
||||||
else if (role == base::ASCIIToUTF16("help"))
|
else if (role == base::ASCIIToUTF16("help"))
|
||||||
[NSApp setHelpMenu:submenu];
|
[NSApp setHelpMenu:submenu];
|
||||||
|
else if (role == base::ASCIIToUTF16("services"))
|
||||||
if (role == base::ASCIIToUTF16("services"))
|
|
||||||
[NSApp setServicesMenu:submenu];
|
[NSApp setServicesMenu:submenu];
|
||||||
} 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
|
||||||
|
|
Loading…
Reference in a new issue