Use else if

This commit is contained in:
Zhuo Lu 2017-11-18 17:56:37 -08:00 committed by Cheng Zhao
parent f0bff74995
commit 0ba2fa5cba

View file

@ -166,8 +166,7 @@ Role kRolesMap[] = {
[NSApp setWindowsMenu:submenu];
else if (role == base::ASCIIToUTF16("help"))
[NSApp setHelpMenu:submenu];
if (role == base::ASCIIToUTF16("services"))
else if (role == base::ASCIIToUTF16("services"))
[NSApp setServicesMenu:submenu];
} else {
// The MenuModel works on indexes so we can't just set the command id as the