]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c
MdeModulePkg/BMMUI: Update TerminalMenu and ConsoleMenu in callback
authorDandan Bi <dandan.bi@intel.com>
Tue, 11 Oct 2016 02:42:04 +0000 (10:42 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 19 Oct 2016 03:37:50 +0000 (11:37 +0800)
commita3475fe0de2e085c73733758026df010b5a6b8ad
treefc716bf82a58dc9a9e27ca0b731d51182b30f991
parentb6f07bdd2af6d28178d6c23bd1931c9baec89107
MdeModulePkg/BMMUI: Update TerminalMenu and ConsoleMenu in callback

In current codes, When user does some change related to Console or Terminal,
when saving data, it will update the content in TerminalMenu and ConsoleMenu
in BootMaintRouteConfig function. This patch moves the update action to the
BootMaintCallback function with EFI_BROWSER_ACTION_CHANGED type.
The reason for this change is: in BootMaintRouteConfig function when
Var_UpdateConsoleXXXOption() return failure and user discard the previous
change, we should re_update the content in the TerminalMenu and ConsoleMenu.
So we move the update action to the changed callback.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c
MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c