mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 10:40:20 +03:00
Fix SyntaxHighlighter::tokenizeAsync (damn i pushed a temporal change into develop).
Fix duplicating the load of session snapshot temporal files.
This commit is contained in:
@@ -732,6 +732,15 @@ void AppConfig::loadDocuments( UICodeEditorSplitter* editorSplitter, json j,
|
||||
|
||||
editorLoadedCounter( app );
|
||||
} else {
|
||||
auto isSnapshotFile =
|
||||
std::find_if( sessionSnapshotFiles.begin(), sessionSnapshotFiles.end(),
|
||||
[&path]( const SessionSnapshotFile& file ) {
|
||||
return file.cachePath == path;
|
||||
} );
|
||||
|
||||
if ( isSnapshotFile != sessionSnapshotFiles.end() )
|
||||
return; // snapshot files are loaded later
|
||||
|
||||
editorSplitter->loadAsyncFileFromPathInNewTab(
|
||||
path,
|
||||
[this, curTabWidget, selection, totalToLoad, currentPage, app, path,
|
||||
|
||||
Reference in New Issue
Block a user