ecode: Improved startup time.

This commit is contained in:
Martín Lucas Golini
2022-05-12 13:52:09 -03:00
parent ec6142a1f5
commit b03928bd18
2 changed files with 3 additions and 1 deletions

View File

@@ -1950,6 +1950,8 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
return;
const DocEvent* docEvent = static_cast<const DocEvent*>( event );
std::string dir( FileSystem::fileRemoveFileName( docEvent->getDoc()->getFilePath() ) );
if ( dir.empty() )
return;
Lock l( mWatchesLock );
auto itWatch = mFilesFolderWatches.find( dir );
if ( mFileWatcher && itWatch != mFilesFolderWatches.end() ) {