mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: emit "delete" event when moving a file to the trash
This commit is contained in:
parent
ed91358b0e
commit
9f3229a370
1 changed files with 2 additions and 1 deletions
|
|
@ -174,7 +174,8 @@ impl Scheduler {
|
||||||
let file = self.file.clone();
|
let file = self.file.clone();
|
||||||
_ = self.micro.try_send(
|
_ = self.micro.try_send(
|
||||||
async move {
|
async move {
|
||||||
file.trash(FileOpTrash { id, target, length: 0 }).await.ok();
|
file.trash(FileOpTrash { id, target: target.clone(), length: 0 }).await.ok();
|
||||||
|
Pump::push_delete(target);
|
||||||
}
|
}
|
||||||
.boxed(),
|
.boxed(),
|
||||||
LOW,
|
LOW,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue