add TexturesCache

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-04-29 10:48:07 -04:00
parent faec75e1b6
commit 7f01f3623d
4 changed files with 188 additions and 9 deletions

View File

@@ -468,7 +468,7 @@ fn render_media_cache(
let m_cached_promise = cache.map().get(url);
if m_cached_promise.is_none() {
let res = crate::images::fetch_img(cache, ui.ctx(), url, img_type, cache_type.clone());
let res = crate::images::fetch_img(cache, ui.ctx(), url, img_type, cache_type);
cache.map_mut().insert(url.to_owned(), res);
}