mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
assembling art qol
This commit is contained in:
@@ -220,6 +220,11 @@ void EventDispatcher::dispatchClosePopup(const Point & position)
|
||||
{
|
||||
bool popupOpen = ENGINE->windows().isTopWindowPopup(); // popup can already be closed for mouse dragging with RMB
|
||||
|
||||
if(popupOpen)
|
||||
{
|
||||
ENGINE->windows().popWindows(1);
|
||||
}
|
||||
|
||||
auto hlp = rclickable;
|
||||
|
||||
for(auto & i : hlp)
|
||||
@@ -229,9 +234,6 @@ void EventDispatcher::dispatchClosePopup(const Point & position)
|
||||
|
||||
i->closePopupWindow(!popupOpen);
|
||||
}
|
||||
|
||||
if(popupOpen)
|
||||
ENGINE->windows().popWindows(1);
|
||||
}
|
||||
|
||||
void EventDispatcher::handleLeftButtonClick(const Point & position, int tolerance, bool isPressed)
|
||||
|
||||
Reference in New Issue
Block a user