Fix GUI bug

This commit is contained in:
auria.mg 2018-03-04 18:38:58 -05:00
parent 2b56a97b08
commit aa027bd09c
2 changed files with 7 additions and 1 deletions

View File

@ -164,6 +164,12 @@ namespace GUIEngine
const video::ITexture* getTexture();
// --------------------------------------------------------------------
virtual void setVisible(bool visible) OVERRIDE;
// --------------------------------------------------------------------
virtual void elementRemoved() OVERRIDE
{
Widget::elementRemoved();
m_label = NULL;
}
};
}

View File

@ -81,7 +81,7 @@ void OnlineScreen::beforeAddingWidget()
if (wan)
{
wan->setActive(is_logged_in);
//wan->setVisible(is_logged_in);
wan->setVisible(is_logged_in);
}
} // beforeAddingWidget