pull/728/head
Mikael Finstad 2021-04-08 22:37:09 +07:00
rodzic 8a8a0d93ca
commit bd6772c405
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
2 zmienionych plików z 9 dodań i 6 usunięć

Wyświetl plik

@ -1,5 +1,8 @@
{
"extends": "airbnb",
"extends": [
"airbnb",
"airbnb/hooks"
],
"env": {
"node": true,
"browser": true,

Wyświetl plik

@ -177,12 +177,12 @@ const App = memo(() => {
const onOutFormatLockedClick = () => setOutFormatLocked((v) => (v ? undefined : fileFormat));
function onOutputFormatUserChange(newFormat) {
const onOutputFormatUserChange = useCallback((newFormat) => {
setFileFormat(newFormat);
if (outFormatLocked) {
setOutFormatLocked(newFormat === detectedFileFormat ? undefined : newFormat);
}
}
}, [detectedFileFormat, outFormatLocked, setOutFormatLocked]);
function setTimelineMode(newMode) {
if (newMode === 'waveform') {
@ -876,7 +876,7 @@ const App = memo(() => {
} finally {
setWorking();
}
}, [filePath, previewFilePath, closeFile, edlFilePath]);
}, [filePath, previewFilePath, closeFile, edlFilePath, cleanupChoices]);
const outSegments = useMemo(() => (invertCutSegments ? inverseCutSegments : apparentCutSegments),
[invertCutSegments, inverseCutSegments, apparentCutSegments]);
@ -1296,7 +1296,7 @@ const App = memo(() => {
} finally {
setWorking();
}
}, [resetState, working, createDummyVideo, loadEdlFile, getEdlFilePath, getHtml5ifiedPath, loadCutSegments, enableAskForImportChapters, showUnsupportedFileMessage, autoLoadTimecode, outFormatLocked]);
}, [resetState, working, createDummyVideo, loadEdlFile, getEdlFilePath, loadCutSegments, enableAskForImportChapters, showUnsupportedFileMessage, autoLoadTimecode, outFormatLocked, showPreviewFileLoadedMessage]);
const toggleHelp = useCallback(() => setHelpVisible(val => !val), []);
const toggleSettings = useCallback(() => setSettingsVisible(val => !val), []);
@ -1873,7 +1873,7 @@ const App = memo(() => {
<option key="disabled3" value="" disabled>--- {i18n.t('All formats:')} ---</option>
{renderFormatOptions(otherFormatsMap)}
</Select>
), [commonFormatsMap, detectedFileFormat, fileFormat, otherFormatsMap]);
), [commonFormatsMap, detectedFileFormat, fileFormat, otherFormatsMap, onOutputFormatUserChange]);
const renderCaptureFormatButton = useCallback((props) => (
<Button