pull/192/head v2.4.0
Mikael Finstad 7 years ago
parent 70dca0e3cb
commit 3cd1e012c4

@ -128,7 +128,9 @@ class App extends React.Component {
return;
}
setFileNameTitle(filePath);
this.setState({ filePath, html5FriendlyPath, fileFormat, detectedFileFormat: fileFormat });
this.setState({
filePath, html5FriendlyPath, fileFormat, detectedFileFormat: fileFormat,
});
} catch (err) {
if (err.code === 1 || err.code === 'ENOENT') {
errorToast('Unsupported file');
@ -579,8 +581,8 @@ class App extends React.Component {
render() {
const {
working, filePath, duration: durationRaw, cutProgress, currentTime, playing,
fileFormat, detectedFileFormat, playbackRate, keyframeCut, includeAllStreams, stripAudio, captureFormat,
helpVisible, currentSeg, cutSegments, autoMerge,
fileFormat, detectedFileFormat, playbackRate, keyframeCut, includeAllStreams, stripAudio,
captureFormat, helpVisible, currentSeg, cutSegments, autoMerge,
} = this.state;
const selectableFormats = ['mov', 'mp4', 'matroska'].filter(f => f !== detectedFileFormat);

Loading…
Cancel
Save