mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
ecode: Improved startup time.
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
Reference in New Issue
Block a user