diff --git a/src/App.tsx b/src/App.tsx index 7ac455e..a47c941 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.tsx index 4466e08..80f90d5 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) { let value; function onClick(key?: string) { value = key;