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();
|
.collect();
|
||||||
guard.sort_unstable_by(|_, a, _, b| b.cmp(a));
|
|
||||||
|
|
||||||
let lock = self.watched.clone();
|
let lock = self.watched.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
|
|
@ -113,9 +112,7 @@ impl Watcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut guard = lock.write();
|
lock.write().extend(ext);
|
||||||
guard.extend(ext);
|
|
||||||
guard.sort_unstable_by(|_, a, _, b| b.cmp(a));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue