From de3e52e5d3098984a2fd97204d15ed4fbe649a34 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Wed, 8 Jul 2020 09:51:07 -0600 Subject: [PATCH] MdeModulePkg/BMM: Save BootOrder on list update --- .../Library/BootMaintenanceManagerUiLib/BootMaintenance.c | 5 +++++ .../Library/BootMaintenanceManagerUiLib/UpdatePage.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c index 60c41bec27..a78faaf033 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c @@ -1280,6 +1280,11 @@ BootMaintCallback ( CurrentFakeNVMap->DriverOptionChanged = TRUE; } + if (QuestionId == BOOT_OPTION_ORDER_QUESTION_ID) { + // Save BootOrder on list update + *ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_APPLY; + } + if ((QuestionId >= BOOT_OPTION_DEL_QUESTION_ID) && (QuestionId < BOOT_OPTION_DEL_QUESTION_ID + MAX_MENU_NUMBER)) { if (Value->b) { // diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c index ba15e7c2d9..57b314df47 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c @@ -651,7 +651,7 @@ UpdateOrderPage ( VarOffset, // Offset in Buffer Storage STRING_TOKEN (STR_CHANGE_ORDER), // Question prompt text STRING_TOKEN (STR_CHANGE_ORDER), // Question help text - 0, // Question flag + EFI_IFR_FLAG_CALLBACK, // Question flag 0, // Ordered list flag, e.g. EFI_IFR_UNIQUE_SET EFI_IFR_TYPE_NUM_SIZE_32, // Data type of Question value 100, // Maximum container