mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-12 01:20:13 +03:00
Added ConditionalLock.
Fixed a bug in ActionManager. Fixed some bugs on UITableView and UITreeView. Fixed a dead-lock un AutoCompleteModule.
This commit is contained in:
@@ -445,10 +445,12 @@ static std::vector<std::string> fuzzyMatchSymbols( const AutoCompleteModule::Sym
|
||||
|
||||
void AutoCompleteModule::runUpdateSuggestions( const std::string& symbol,
|
||||
const SymbolsList& symbols, UICodeEditor* editor ) {
|
||||
Lock l( mLangSymbolsMutex );
|
||||
Lock l2( mSuggestionsMutex );
|
||||
mSuggestions = fuzzyMatchSymbols( symbols, symbol, mSuggestionsMaxVisible );
|
||||
mSuggestionsEditor = editor;
|
||||
{
|
||||
Lock l( mLangSymbolsMutex );
|
||||
Lock l2( mSuggestionsMutex );
|
||||
mSuggestions = fuzzyMatchSymbols( symbols, symbol, mSuggestionsMaxVisible );
|
||||
mSuggestionsEditor = editor;
|
||||
}
|
||||
editor->runOnMainThread( [editor] { editor->invalidateDraw(); } );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user