fix: wrong directory loading optimization condition (#1331)

This commit is contained in:
三咲雅 · Misaki Masa 2024-07-24 16:26:09 +08:00 committed by GitHub
parent a9eb218a5b
commit 4a0522640d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(),