Skip to content

Commit

Permalink
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c: a…
Browse files Browse the repository at this point in the history
…utoboot timeout fix

Signed-off-by: Filip Lewiński <[email protected]>
  • Loading branch information
filipleple committed Oct 17, 2023
1 parent f4d2571 commit 33c3b9f
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,8 @@ BootMaintCallback (
UINTN Index;
EFI_DEVICE_PATH_PROTOCOL * File;

if (Action != EFI_BROWSER_ACTION_CHANGING && Action != EFI_BROWSER_ACTION_CHANGED && Action != EFI_BROWSER_ACTION_FORM_OPEN) {

if (Action != EFI_BROWSER_ACTION_CHANGING && Action != EFI_BROWSER_ACTION_CHANGED && Action != EFI_BROWSER_ACTION_FORM_OPEN && Action != EFI_BROWSER_ACTION_RESET_TO_DEFAULT) {
//
// Do nothing for other UEFI Action. Only do call back when data is changed or the form is open.
//
Expand All @@ -1093,6 +1094,19 @@ BootMaintCallback (

Private = BMM_CALLBACK_DATA_FROM_THIS (This);



if (Action == EFI_BROWSER_ACTION_DEFAULT_FIRMWARE) {
//find something like Private->BmmDefaultValues.BootTimeOut
CurrentFakeNVMap->BootTimeOut = Private->BmmOldFakeNVData.BootTimeOut;

HiiSetBrowserData(...); // Update the value in the HII database

return EFI_SUCCESS; // Indicate that the operation was successful
}



if (Action == EFI_BROWSER_ACTION_FORM_OPEN) {
if (QuestionId == KEY_VALUE_TRIGGER_FORM_OPEN_ACTION) {
if (!mFirstEnterBMMForm) {
Expand Down

0 comments on commit 33c3b9f

Please sign in to comment.