]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SetupBrowserDxe: Do not reconnect driver with form-update
authorWalon Li <walon.li@hpe.com>
Wed, 20 May 2020 04:24:47 +0000 (12:24 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 10 Jun 2020 04:25:47 +0000 (04:25 +0000)
commit365fdb0f939cf00b26d37f27adbf579aa984221b
tree1ad97d49d186988f3e24d1994c24bcca8bb168f0
parent8c91934019a7c10811d274d65210e9fdf36400cc
MdeModulePkg/SetupBrowserDxe: Do not reconnect driver with form-update

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2701

Recording to the spec, the reconnect is activated upon exiting of the
formset or the browser. Exiting is by user but form-browser internal
logic. That means the reconnection is only happened when user press
ESC or _EXIT action to exit form.
Driver callback may update HII form dynamically so form-browser needs
to refresh its internal data. It's not exiting formset for user
exactly and they didn't know what happened. So use a flag to record
that and do not reconnect driver if updated by callback.

Signed-off-by: Walon Li <walon.li@hpe.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c
MdeModulePkg/Universal/SetupBrowserDxe/Setup.c