mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
Enter popup await mode only if there is an active popup
This commit is contained in:
@ -48,6 +48,14 @@ void WindowHandler::pushWindow(std::shared_ptr<IShowActivatable> newInt)
|
||||
totalRedraw();
|
||||
}
|
||||
|
||||
bool WindowHandler::isTopWindowPopup() const
|
||||
{
|
||||
if (windowsStack.empty())
|
||||
return false;
|
||||
|
||||
return windowsStack.back()->isPopupWindow();
|
||||
}
|
||||
|
||||
void WindowHandler::popWindows(int howMany)
|
||||
{
|
||||
if(!howMany)
|
||||
|
Reference in New Issue
Block a user