From 1d33b6b90a067c015761b94fe27847cee56933a6 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 13 Feb 2022 13:01:44 +0800 Subject: [PATCH] don't open first file of batch to make it faster to load batches --- src/App.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 22d6af8e..988c4c43 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1604,7 +1604,6 @@ const App = memo(() => { setConcatDialogVisible(true); } else { batchLoadPaths(filePaths, true); - batchOpenSingleFile(filePaths[0]); } return; } @@ -1666,7 +1665,7 @@ const App = memo(() => { } finally { setWorking(); } - }, [batchLoadPaths, alwaysConcatMultipleFiles, batchOpenSingleFile, setWorking, isFileOpened, userOpenSingleFile, checkFileOpened, loadEdlFile, enableAskForFileOpenAction, addStreamSourceFile]); + }, [batchLoadPaths, alwaysConcatMultipleFiles, setWorking, isFileOpened, userOpenSingleFile, checkFileOpened, loadEdlFile, enableAskForFileOpenAction, addStreamSourceFile]); const userHtml5ifyCurrentFile = useCallback(async () => { if (!filePath) return;