Restore the whole form set to default value when user enter F9, old logical only for form level.
Signed-off-by:ydong10 Reviewed-by:lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11911 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -3234,14 +3234,10 @@ UiDisplayMenu (
|
||||
|
||||
case CfUiDefault:
|
||||
ControlFlag = CfCheckSelection;
|
||||
if (!Selection->FormEditable) {
|
||||
//
|
||||
// This Form is not editable, ignore the F9 (reset to default)
|
||||
//
|
||||
break;
|
||||
}
|
||||
|
||||
Status = ExtractFormDefault (Selection->FormSet, Selection->Form, DefaultId);
|
||||
//
|
||||
// Reset to default values for the whole formset
|
||||
//
|
||||
Status = ExtractFormSetDefault (Selection->FormSet, DefaultId);
|
||||
|
||||
if (!EFI_ERROR (Status)) {
|
||||
Selection->Action = UI_ACTION_REFRESH_FORM;
|
||||
|
Reference in New Issue
Block a user