Fixes an issue when reloading documents (file system change) that disabled the linter by mistake.

This commit is contained in:
Martín Lucas Golini
2023-11-09 20:32:45 -03:00
parent 7f80638632
commit e9654631ea
7 changed files with 21 additions and 3 deletions

View File

@@ -2423,6 +2423,8 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
} );
auto docChanged = [this]( const Event* event ) {
if ( !Engine::isRunninMainThread() )
return;
const DocEvent* synEvent = static_cast<const DocEvent*>( event );
UICodeEditor* editor = event->getNode()->asType<UICodeEditor>();
UIIcon* icon = mUISceneNode->findIcon(