mirror of https://github.com/axmolengine/axmol.git
fix loading bar switch loading method issue
This commit is contained in:
parent
19da7e8075
commit
714048059c
|
@ -19,6 +19,7 @@ UILoadingBarTest_Editor::~UILoadingBarTest_Editor()
|
|||
void UILoadingBarTest_Editor::switchLoadMethod(cocos2d::Ref *pSender)
|
||||
{
|
||||
MenuItemToggle *item = (MenuItemToggle*)pSender;
|
||||
_count = 0;
|
||||
|
||||
if (item->getSelectedIndex() == 0){
|
||||
_layout->removeFromParentAndCleanup(true);
|
||||
|
|
Loading…
Reference in New Issue