mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 03:26:29 +03:00
Updated efsw.
ecode: Don't load inexistent project files. Minor clean up.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user