mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
Reset title too when dragging file
This commit is contained in:
parent
653d6b9936
commit
0e23be39d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user