mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-16 14:05:07 +03:00
AutoCompletePlugin::updateDocCache is now aware of document closing
Set the tooltip on tab editor split When changing folder update/save the last folder Allow disabling welcome screen (SpartanJ/ecode#279).
This commit is contained in:
@@ -117,6 +117,17 @@ AutoCompletePlugin::~AutoCompletePlugin() {
|
||||
editor.first->removeEventListener( listener );
|
||||
editor.first->unregisterPlugin( this );
|
||||
}
|
||||
|
||||
bool isUpdating = false;
|
||||
do {
|
||||
{
|
||||
Lock lu( mDocsUpdatingMutex );
|
||||
isUpdating = std::any_of( mDocsUpdating.begin(), mDocsUpdating.end(),
|
||||
[]( const auto& du ) { return du.second == true; } );
|
||||
}
|
||||
if ( isUpdating )
|
||||
Sys::sleep( Milliseconds( 1 ) );
|
||||
} while ( isUpdating );
|
||||
}
|
||||
|
||||
void AutoCompletePlugin::load( PluginManager* pluginManager ) {
|
||||
|
||||
Reference in New Issue
Block a user