Merge remote-tracking branch 'origin/main' into better-ui-manager
This commit is contained in:
commit
611f417d5e
@ -138,7 +138,7 @@ namespace NEG.UI
|
||||
{
|
||||
if (currentShownPopup.data != data)
|
||||
{
|
||||
Debug.LogError("Popup was not shown");
|
||||
//Debug.LogError("Popup was not shown");
|
||||
return;
|
||||
}
|
||||
UpdatePopupsState(false);
|
||||
@ -167,7 +167,10 @@ namespace NEG.UI
|
||||
return;
|
||||
}
|
||||
|
||||
currentShownPopup.data?.Hide();
|
||||
if (currentShownPopup.data == null)
|
||||
return;
|
||||
currentShownPopup.data.PopupClosedEvent -= PopupClosed;
|
||||
currentShownPopup.data.Hide();
|
||||
currentShownPopup.data = null;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user