diff options
author | Liming Gao <liming.gao@intel.com> | 2018-06-21 20:06:17 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-06-25 11:17:01 +0800 |
commit | 14923c1a6bf9940b48feeaf47cb5d6c662b6528c (patch) | |
tree | 3ae4b03e579bc1d0115cf77fb0bd995c89dc228a /MdeModulePkg | |
parent | 363c3fe2537a20fe92d7cd9307bd75df99888ce8 (diff) | |
download | edk2-14923c1a6bf9940b48feeaf47cb5d6c662b6528c.tar.gz edk2-14923c1a6bf9940b48feeaf47cb5d6c662b6528c.tar.bz2 edk2-14923c1a6bf9940b48feeaf47cb5d6c662b6528c.zip |
MdeModulePkg BootMaintenanceManagerUiLib: Move refresh boot option later
Constructor is too early that ConnectAll() may not do. Move refresh boot
option in form open.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Xu WeiX <weix.xu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c index 98e14c7d63..fdcb56a9df 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c @@ -1111,6 +1111,7 @@ BootMaintCallback ( // 2. Re-scan the BootOption menus (including the legacy boot option).
//
CustomizeMenus ();
+ EfiBootManagerRefreshAllBootOption ();
BOpt_GetBootOptions (Private);
mFirstEnterBMMForm = TRUE;
}
@@ -1690,8 +1691,6 @@ BootMaintenanceManagerUiLibConstructor ( Status = gBS->LocateProtocol (&gEfiFormBrowser2ProtocolGuid, NULL, (VOID **) &mBmmCallbackInfo->FormBrowser2);
ASSERT_EFI_ERROR (Status);
- EfiBootManagerRefreshAllBootOption ();
-
//
// Create LoadOption in BmmCallbackInfo for Driver Callback
//
|