MdeModulePkg DriverHealthManagerDxe: Display HealthStatus as TextTwo

When PcdBrowserGrayOutTextStatement is TRUE, TextOpCode will be GrayOut.
HealthStatus cannot be displayed in help area, use TextTwo to display it.

Signed-off-by: Yang Gang <yanggang@byosoft.com.cn>
This commit is contained in:
Yang Gang 2024-11-29 17:03:48 +08:00 committed by Liming Gao
parent f8f29a4a6a
commit 58c7517228

View File

@ -694,6 +694,7 @@ DriverHealthManagerUpdateForm (
UINTN Index;
EFI_STRING_ID Prompt;
EFI_STRING_ID Help;
EFI_STRING_ID TextTwo;
CHAR16 String[512];
UINTN StringCount;
EFI_STRING TmpString;
@ -848,11 +849,12 @@ DriverHealthManagerUpdateForm (
mDriverHealthManagerHealthInfo[Index].HealthStatus == EfiDriverHealthStatusHealthy ||
mDriverHealthManagerHealthInfo[Index].HealthStatus == EfiDriverHealthStatusFailed
);
TextTwo = Help;
HiiCreateTextOpCode (
StartOpCodeHandle,
Prompt,
Help,
0
0,
TextTwo
);
break;
}