mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Make MenuStack::RemoveFromParent automatically close all menus remaining in the stack
This commit is contained in:
parent
9bcfeba9d7
commit
918ccc5cc2
@ -238,6 +238,13 @@ void UMenuStack::FirstMenuOpened()
|
||||
|
||||
void UMenuStack::RemoveFromParent()
|
||||
{
|
||||
if (Menus.Num() > 0)
|
||||
{
|
||||
CloseAll(false);
|
||||
// LastMenuClosed will re-call this so don't duplicate
|
||||
return;
|
||||
}
|
||||
|
||||
Super::RemoveFromParent();
|
||||
|
||||
// tell menu system if we're in-game (this gets called in editor too)
|
||||
|
Loading…
x
Reference in New Issue
Block a user