fix popup show
This commit is contained in:
parent
17f48f7eb2
commit
9e60fdf32d
@ -151,7 +151,7 @@ namespace NEG.UI
|
|||||||
{
|
{
|
||||||
if (forceShow)
|
if (forceShow)
|
||||||
{
|
{
|
||||||
if(currentShownPopup.priority <= priority)
|
if(currentShownPopup.data != null && currentShownPopup.priority >= priority)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
popupsToShow.Enqueue(currentShownPopup.data, currentShownPopup.priority);
|
popupsToShow.Enqueue(currentShownPopup.data, currentShownPopup.priority);
|
||||||
@ -163,6 +163,8 @@ namespace NEG.UI
|
|||||||
{
|
{
|
||||||
if(!d.IsValid)
|
if(!d.IsValid)
|
||||||
continue;
|
continue;
|
||||||
|
if(d == currentShownPopup.data)
|
||||||
|
continue;
|
||||||
ShowPopup(d, p);
|
ShowPopup(d, p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user