aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-28 02:08:40 +0200
committerdec05eba <dec05eba@protonmail.com>2020-05-28 02:08:40 +0200
commit9799803529c57930a0e7f12e45cbcf2b2e4419eb (patch)
treeb2c488b49d901e5bc5e911a2e714a6748f37158e /src/Body.cpp
parent217101c7a79dccf8617a7d3251d4b06bc7cb5905 (diff)
Add support for mangadex
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index c892c4e..8ccb3cc 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -112,6 +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(result->loadFromMemory(texture_data.data(), texture_data.size())) {
//result->generateMipmap();