1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix cursor visibility on closing popup

This commit is contained in:
Ivan Savenko
2023-06-13 19:12:01 +03:00
parent 85a11c090e
commit 82288996a2

View File

@@ -75,7 +75,11 @@ CWindowObject::CWindowObject(int options_, std::string imageName):
setShadow(true); setShadow(true);
} }
CWindowObject::~CWindowObject() = default; CWindowObject::~CWindowObject()
{
if(options & RCLICK_POPUP)
CCS->curh->show();
}
std::shared_ptr<CPicture> CWindowObject::createBg(std::string imageName, bool playerColored) std::shared_ptr<CPicture> CWindowObject::createBg(std::string imageName, bool playerColored)
{ {