| 238 | } |
| 239 | |
| 240 | PluginBase::~PluginBase() { |
| 241 | mShuttingDown = true; |
| 242 | unsubscribeFileSystemListener(); |
| 243 | |
| 244 | for ( auto editor : mEditors ) { |
| 245 | for ( auto listener : editor.second ) |
| 246 | editor.first->removeEventListener( listener ); |
| 247 | editor.first->unregisterPlugin( this ); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | void PluginBase::onRegister( UICodeEditor* editor ) { |
| 252 | Lock l( mMutex ); |
nothing calls this directly
no test coverage detected