improve open dialog

pull/1925/head
Mikael Finstad 2 years ago
parent cb5a8c2c85
commit 287c7c3614
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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');

@ -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;

Loading…
Cancel
Save