mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
ecode:
Fixes for SpartanJ/ecode#45. Minor performance optimizations. Minor bug fixes.
This commit is contained in:
@@ -376,7 +376,9 @@ UIWindow* UIPluginManager::New( UISceneNode* sceneNode, PluginManager* manager,
|
||||
}
|
||||
};
|
||||
tv->addEventListener( Event::OnClose, [&, manager, tv]( const Event* ) {
|
||||
for ( auto& cb : tv->readyCbs ) {
|
||||
if ( tv->readyCbs.empty() )
|
||||
return;
|
||||
for ( const auto& cb : tv->readyCbs ) {
|
||||
auto* plugin = manager->get( cb.first );
|
||||
if ( plugin )
|
||||
plugin->removeReadyCallback( cb.second );
|
||||
|
||||
Reference in New Issue
Block a user