1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 03:33:14 +01:00

Reset title too when dragging file

This commit is contained in:
Mikael Finstad 2018-02-11 13:30:38 +01:00
parent 653d6b9936
commit 0e23be39d1

View File

@ -17,7 +17,7 @@ const dialog = electron.remote.dialog;
function setFileNameTitle(filePath) {
const appName = 'LosslessCut';
document.title = `${appName} - ${path.basename(filePath)}`;
document.title = filePath ? `${appName} - ${path.basename(filePath)}` : 'appName';
}
function getVideo() {
@ -110,6 +110,8 @@ class App extends React.Component {
resetState();
setFileNameTitle();
this.setState({ working: true });
return ffmpeg.getFormat(filePath)