1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 03:33:14 +01:00
This commit is contained in:
Mikael Finstad 2020-02-11 23:15:53 +08:00
parent 74439d716d
commit 23c17f2862

View File

@ -497,10 +497,11 @@ class App extends React.Component {
deleteSourceClick = async () => {
// eslint-disable-next-line no-alert
if (this.state.working || !window.confirm('Are you sure you want to move the source file to trash?')) return;
const { filePath } = this.state;
const { filePath, html5FriendlyPath } = this.state;
this.setState({ working: true });
await trash(filePath);
if (html5FriendlyPath) await trash(html5FriendlyPath);
this.resetState();
}