popups fix
This commit is contained in:
parent
42dbfc8827
commit
1f2c251d0c
@ -135,7 +135,7 @@ namespace NEG.UI
|
|||||||
{
|
{
|
||||||
if (currentShownPopup.data != data)
|
if (currentShownPopup.data != data)
|
||||||
{
|
{
|
||||||
Debug.LogError("Popup was not shown");
|
//Debug.LogError("Popup was not shown");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
UpdatePopupsState(false);
|
UpdatePopupsState(false);
|
||||||
@ -163,7 +163,10 @@ namespace NEG.UI
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
currentShownPopup.data?.Hide();
|
if (currentShownPopup.data == null)
|
||||||
|
return;
|
||||||
|
currentShownPopup.data.PopupClosedEvent -= PopupClosed;
|
||||||
|
currentShownPopup.data.Hide();
|
||||||
currentShownPopup.data = null;
|
currentShownPopup.data = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user