mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
b6d4bef405
commit
3e6881999f
1 changed files with 1 additions and 4 deletions
|
|
@ -99,7 +99,6 @@ impl Watcher {
|
|||
}
|
||||
})
|
||||
.collect();
|
||||
guard.sort_unstable_by(|_, a, _, b| b.cmp(a));
|
||||
|
||||
let lock = self.watched.clone();
|
||||
tokio::spawn(async move {
|
||||
|
|
@ -113,9 +112,7 @@ impl Watcher {
|
|||
}
|
||||
}
|
||||
|
||||
let mut guard = lock.write();
|
||||
guard.extend(ext);
|
||||
guard.sort_unstable_by(|_, a, _, b| b.cmp(a));
|
||||
lock.write().extend(ext);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue