mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix notification crashing when shown during a transition fade
This commit is contained in:
parent
eb7c4d9803
commit
0270d472a9
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ void Notification::show() {
|
|||
if (!this->getParent()) {
|
||||
auto winSize = CCDirector::get()->getWinSize();
|
||||
this->setPosition(winSize.width / 2, winSize.height / 4);
|
||||
this->setZOrder(CCScene::get()->getHighestChildZ() + 100);
|
||||
this->setZOrder(CCScene::get()->getChildrenCount() > 0 ? CCScene::get()->getHighestChildZ() + 100 : 100);
|
||||
}
|
||||
SceneManager::get()->keepAcrossScenes(this);
|
||||
m_showing = true;
|
||||
|
|
Loading…
Reference in a new issue