mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 03:33:14 +01:00
fix #236
This commit is contained in:
parent
74439d716d
commit
23c17f2862
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user