fix: various bugs for android

This commit is contained in:
2024-10-17 22:05:53 +01:00
parent 91f0baf75c
commit 117968bd17
10 changed files with 53 additions and 35 deletions

View File

@ -58,6 +58,10 @@ impl ImageCache {
if let Err(e) = tokio::fs::write(path, data.bytes().await.unwrap()).await {
error!("Failed to write file: {}", e);
}
// forget cached url
for t in ctx.loaders().texture.lock().iter() {
t.forget(&u);
}
ctx.request_repaint();
}
}