mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13399 from WenhaiLin/v3.8-beta2
DownloaderAsyncTest:Fixed crash cause by double-click `start download` button.
This commit is contained in:
commit
4000cff902
|
@ -117,7 +117,8 @@ void DownloaderAsyncTest::onEnter()
|
|||
DownloaderBaseTest::onEnter();
|
||||
|
||||
auto menuItem = MenuItemFont::create("start download", [=](Ref* sender){
|
||||
|
||||
MenuItemFont* item = (MenuItemFont*)sender;
|
||||
item->setEnabled(false);
|
||||
if (_downloader)
|
||||
{
|
||||
std::string path = FileUtils::getInstance()->getWritablePath() + "CppTests/DownloaderTest/cocos2d_logo_async.jpg";
|
||||
|
|
Loading…
Reference in New Issue