The swiss army knife of lossless video/audio editing
improve open dialog
Mikael Finstad287c7c3614a5
diff --git a/src/App.tsx b/src/App.tsxindex 7ac455ef..a47c941d 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1905,8 +1905,8 @@ function App() {if (isFileOpened) {if (isLlcProject) inputOptions.project = i18n.t('Load segments from the new file, but keep the current media');- else if (filePathLowerCase.endsWith('.srt')) inputOptions.subtitles = i18n.t('Convert subtitiles into segments');- else inputOptions.tracks = i18n.t('Include all tracks from the new file');+ if (filePathLowerCase.endsWith('.srt')) inputOptions.subtitles = i18n.t('Convert subtitiles into segments');+ inputOptions.tracks = i18n.t('Include all tracks from the new file');}if (batchFiles.length > 0) inputOptions.addToBatch = i18n.t('Add the file to the batch list');diff --git a/src/dialogs/index.tsx b/src/dialogs/index.tsxindex 4466e081..80f90d51 100644--- a/src/dialogs/index.tsx+++ b/src/dialogs/index.tsx@@ -101,7 +101,7 @@ export async function askForFfPath(defaultPath) {return (filePaths && filePaths.length === 1) ? filePaths[0] : undefined;}-export async function askForFileOpenAction(inputOptions) {+export async function askForFileOpenAction(inputOptions: Record<string, string>) {let value;function onClick(key?: string) {value = key;