mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: wrong directory loading optimization condition (#1331)
This commit is contained in:
parent
a9eb218a5b
commit
4a0522640d
1 changed files with 0 additions and 4 deletions
|
|
@ -46,10 +46,6 @@ impl Preview {
|
||||||
let url = file.url();
|
let url = file.url();
|
||||||
self.go(file, MIME_DIR, force);
|
self.go(file, MIME_DIR, force);
|
||||||
|
|
||||||
if matches!(&self.folder_loader, Some((u, _)) if *u == url) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.folder_loader.take().map(|(_, h)| h.abort());
|
self.folder_loader.take().map(|(_, h)| h.abort());
|
||||||
self.folder_loader = Some((
|
self.folder_loader = Some((
|
||||||
url.clone(),
|
url.clone(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue