diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-01 23:10:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-01 23:10:00 +0200 |
commit | 223cdf22c5aec68d1e14bc013d8e75daa374d04e (patch) | |
tree | ea78659fbab6bdfd7d95c98ee5465da9cc0a61dd /src/Body.cpp | |
parent | 201cb2b1fac77c542a20aea2ac1d80c78a3d80e9 (diff) |
Cache thumbnails
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index 8ccb3cc..3bd2421 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -112,8 +112,7 @@ namespace QuickMedia { loading_thumbnail = true; thumbnail_load_thread = std::thread([this, result, url]() { std::string texture_data; - // TODO: Cache images instead of redownloading them everytime they appear on the screen - if(download_to_string(url, texture_data, {}, program->get_current_plugin()->use_tor) == DownloadResult::OK) { + if(download_to_string_cache(url, texture_data, {}, program->get_current_plugin()->use_tor) == DownloadResult::OK) { if(result->loadFromMemory(texture_data.data(), texture_data.size())) { //result->generateMipmap(); } |