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