mirror of https://github.com/acidanthera/audk.git
Driver health entry in device manager page is not totally hidden, the original code just change string to empty string, if cursor is at empty string, there is no focus at all.
Dynamically create subtitle and action entry of driver health when driver health protocol is installed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10047 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
28b5f7c062
commit
479e19a6d5
|
@ -464,13 +464,24 @@ CallDeviceManager (
|
||||||
&NumHandles,
|
&NumHandles,
|
||||||
&DriverHealthHandles
|
&DriverHealthHandles
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// If there are no drivers installed driver health protocol
|
// If there are no drivers installed driver health protocol, do not create driver health entry in UI
|
||||||
//
|
//
|
||||||
if (NumHandles == 0) {
|
if (NumHandles != 0) {
|
||||||
HiiSetString (HiiHandle, STRING_TOKEN (STR_DM_DRIVER_HEALTH_TITLE), GetStringById (STRING_TOKEN (STR_EMPTY_STRING)), NULL);
|
//
|
||||||
HiiSetString (HiiHandle, STRING_TOKEN (STR_DRIVER_HEALTH_ALL_HEALTHY), GetStringById (STRING_TOKEN (STR_EMPTY_STRING)), NULL);
|
// If driver health protocol is installed, create Driver Health subtitle and entry
|
||||||
} else {
|
//
|
||||||
|
HiiCreateSubTitleOpCode (StartOpCodeHandle, STRING_TOKEN (STR_DM_DRIVER_HEALTH_TITLE), 0, 0, 0);
|
||||||
|
HiiCreateActionOpCode (
|
||||||
|
StartOpCodeHandle, // Container for dynamic created opcodes
|
||||||
|
DEVICE_MANAGER_KEY_DRIVER_HEALTH, // Question ID
|
||||||
|
STRING_TOKEN(STR_DRIVER_HEALTH_ALL_HEALTHY), // Prompt text
|
||||||
|
STRING_TOKEN(STR_DRIVER_HEALTH_STATUS_HELP), // Help text
|
||||||
|
EFI_IFR_FLAG_CALLBACK, // Question flag
|
||||||
|
0 // Action String ID
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check All Driver health status
|
// Check All Driver health status
|
||||||
//
|
//
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//
|
//
|
||||||
// Device Manager formset.
|
// Device Manager formset.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2004 - 2009, Intel Corporation. <BR>
|
// Copyright (c) 2004 - 2010, Intel Corporation. <BR>
|
||||||
// All rights reserved. This program and the accompanying materials
|
// All rights reserved. This program and the accompanying materials
|
||||||
// are licensed and made available under the terms and conditions of the BSD License
|
// are licensed and made available under the terms and conditions of the BSD License
|
||||||
// which accompanies this distribution. The full text of the license may be found at
|
// which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -67,16 +67,6 @@ formset
|
||||||
label LABEL_DEVICES_LIST;
|
label LABEL_DEVICES_LIST;
|
||||||
label LABEL_END;
|
label LABEL_END;
|
||||||
|
|
||||||
subtitle text = STRING_TOKEN(STR_LAST_STRING);
|
|
||||||
subtitle text = STRING_TOKEN(STR_DM_DRIVER_HEALTH_TITLE);
|
|
||||||
|
|
||||||
text
|
|
||||||
help = STRING_TOKEN(STR_DRIVER_HEALTH_STATUS_HELP),
|
|
||||||
text = STRING_TOKEN(STR_DRIVER_HEALTH_ALL_HEALTHY),
|
|
||||||
text = STRING_TOKEN(STR_LAST_STRING),
|
|
||||||
flags = INTERACTIVE,
|
|
||||||
key = DEVICE_MANAGER_KEY_DRIVER_HEALTH;
|
|
||||||
|
|
||||||
subtitle text = STRING_TOKEN(STR_EMPTY_STRING);
|
subtitle text = STRING_TOKEN(STR_EMPTY_STRING);
|
||||||
|
|
||||||
label LABEL_VBIOS;
|
label LABEL_VBIOS;
|
||||||
|
|
Loading…
Reference in New Issue