mirror of https://github.com/axmolengine/axmol.git
parent
aec3660ec4
commit
480004651b
|
@ -176,8 +176,12 @@ void TestController::updateItemsText()
|
|||
if (nIdx < TESTS_COUNT)
|
||||
{
|
||||
std::string menuText = g_aTestNames[nIdx];
|
||||
m_pMenuItems[i]->setString(menuText.c_str());
|
||||
m_pMenuItems[i]->setIsVisible(true);
|
||||
|
||||
if (! menuText.empty())
|
||||
{
|
||||
m_pMenuItems[i]->setString(menuText.c_str());
|
||||
m_pMenuItems[i]->setIsVisible(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue