Refine code make callback logic same with frontPage.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9531 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy 2009-12-07 05:55:07 +00:00
parent 56385d4987
commit bd2057a846
2 changed files with 10 additions and 6 deletions

View File

@ -505,6 +505,10 @@ CallDeviceManager (
// //
if (gCallbackKey == DEVICE_MANAGER_KEY_DRIVER_HEALTH) { if (gCallbackKey == DEVICE_MANAGER_KEY_DRIVER_HEALTH) {
CallDriverHealth (); CallDriverHealth ();
//
// Force return to Device Manager
//
gCallbackKey = FRONT_PAGE_KEY_DEVICE_MANAGER;
} }
// //
@ -849,7 +853,7 @@ CallDriverHealth (
// a target to display. // a target to display.
// Process the diver health status states here. // Process the diver health status states here.
// //
if (gCallbackKey >= DRIVER_HEALTH_KEY_OFFSET && gCallbackKey != DRIVER_HEALTH_REPAIR_ALL_KEY && gCallbackKey != FRONT_PAGE_KEY_DEVICE_MANAGER) { if (gCallbackKey >= DRIVER_HEALTH_KEY_OFFSET && gCallbackKey != DRIVER_HEALTH_REPAIR_ALL_KEY) {
ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE; ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;
Link = GetFirstNode (&DriverHealthList); Link = GetFirstNode (&DriverHealthList);
@ -938,12 +942,12 @@ CallDriverHealth (
HiiFreeOpCodeHandle (EndOpCodeHandleRepair); HiiFreeOpCodeHandle (EndOpCodeHandleRepair);
if (gCallbackKey == DRIVER_HEALTH_RETURN_KEY) { if (gCallbackKey == DRIVER_HEALTH_RETURN_KEY) {
//
// Force return to Driver Health Form
//
gCallbackKey = DEVICE_MANAGER_KEY_DRIVER_HEALTH; gCallbackKey = DEVICE_MANAGER_KEY_DRIVER_HEALTH;
CallDriverHealth (); CallDriverHealth ();
} }
if (gCallbackKey == DEVICE_MANAGER_KEY_DRIVER_HEALTH) {
CallDeviceManager();
}
} }