fix: wrong directory loading optimization condition

This commit is contained in:
sxyazi 2024-07-24 06:40:35 +08:00
parent a9eb218a5b
commit 1ab3eb911a
No known key found for this signature in database

View file

@ -46,10 +46,6 @@ impl Preview {
let url = file.url();
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 = Some((
url.clone(),