Updated efsw.

ecode: Don't load inexistent project files.
Minor clean up.
This commit is contained in:
Martín Lucas Golini
2022-08-04 01:36:42 -03:00
parent 0ea4636bfc
commit 5a619349b2
3 changed files with 29 additions and 32 deletions

View File

@@ -318,6 +318,8 @@ static void loadDocuments( UICodeEditorSplitter* editorSplitter, std::shared_ptr
for ( const auto& file : j["files"] ) {
if ( !file.contains( "type" ) || file["type"] == "editor" ) {
std::string path( file["path"] );
if ( !FileSystem::fileExists( path ) )
return;
TextRange selection( TextRange::fromString( file["selection"] ) );
editorSplitter->loadAsyncFileFromPathInNewTab(
path, pool,