improve open dialog

pull/1925/head
Mikael Finstad 2024-03-14 15:40:51 +08:00
rodzic cb5a8c2c85
commit 287c7c3614
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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