Based on the feature PCD value, browser will decide whether to gray out the read only menu.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14112 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -778,6 +778,9 @@ UiAddMenuOption (
|
||||
if ((Statement->ValueExpression != NULL) ||
|
||||
((Statement->QuestionFlags & EFI_IFR_FLAG_READ_ONLY) != 0)) {
|
||||
MenuOption->ReadOnly = TRUE;
|
||||
if (FeaturePcdGet (PcdBrowerGrayOutReadOnlyMenu)) {
|
||||
MenuOption->GrayOut = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
InsertTailList (&gMenuOption, &MenuOption->Link);
|
||||
|
Reference in New Issue
Block a user