Entry and initialization module for the browser.\r
\r
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
-(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+(C) Copyright 2020 - 2022 Hewlett Packard Enterprise Development LP<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
extern EFI_HII_HANDLE mCurrentHiiHandle;\r
extern UINT16 mCurrentFormId;\r
extern FORM_DISPLAY_ENGINE_FORM gDisplayFormData;\r
-extern BOOLEAN mDynamicFormUpdated;\r
\r
/**\r
Create a menu with specified formset GUID and form ID, and add it as a child\r
\r
Selection->FormSet = FormSet;\r
mSystemLevelFormSet = FormSet;\r
- mDynamicFormUpdated = FALSE;\r
\r
//\r
// Display this formset\r
mSystemLevelFormSet = NULL;\r
\r
//\r
- // If callback update form dynamically, it's not exiting of the formset for user so system do not reconnect driver hanlde\r
- // this time.\r
+ // Check incoming formset whether is same with previous. If yes, that means action is not exiting of formset so do not reconnect controller.\r
//\r
- if (!mDynamicFormUpdated && (gFlagReconnect || gCallbackReconnect)) {\r
+ if ((gFlagReconnect || gCallbackReconnect) && !CompareGuid (&FormSet->Guid, &Selection->FormSetGuid)) {\r
RetVal = ReconnectController (FormSet->DriverHandle);\r
if (!RetVal) {\r
PopupErrorMessage (BROWSER_RECONNECT_FAIL, NULL, NULL, NULL);\r