ecode: Display the the error or warning message in the symbol info tooltip. Try to prevent reloading a plugin when it's currently loading.

This commit is contained in:
Martín Lucas Golini
2023-07-02 15:40:47 -03:00
parent 0fc9fb3895
commit b68161b64e
9 changed files with 112 additions and 7 deletions

View File

@@ -453,7 +453,7 @@ void Plugin::subscribeFileSystemListener() {
[this]( const FileEvent& ev, const FileInfo& file ) {
if ( ev.type != FileSystemEventType::Modified )
return;
if ( !mShuttingDown && file.getFilepath() == mConfigPath &&
if ( !mShuttingDown && !mLoading && file.getFilepath() == mConfigPath &&
file.getModificationTime() != mConfigFileInfo.getModificationTime() ) {
std::string fileContents;
FileSystem::fileGet( file.getFilepath(), fileContents );