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:
ydong10
2013-01-29 06:52:38 +00:00
parent 0c504abf90
commit 0777cea600
3 changed files with 10 additions and 1 deletions

View File

@@ -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);