|
|
@ -136,10 +136,10 @@ MxcImageProvider::download(const QString &id, |
|
|
|
opts.method = crop ? "crop" : "scale"; |
|
|
|
opts.method = crop ? "crop" : "scale"; |
|
|
|
http::client()->get_thumbnail( |
|
|
|
http::client()->get_thumbnail( |
|
|
|
opts, |
|
|
|
opts, |
|
|
|
[fileInfo, requestedSize, radius, then, id](const std::string &res, |
|
|
|
[fileInfo, requestedSize, radius, then, id, crop](const std::string &res, |
|
|
|
mtx::http::RequestErr err) { |
|
|
|
mtx::http::RequestErr err) { |
|
|
|
if (err || res.empty()) { |
|
|
|
if (err || res.empty()) { |
|
|
|
then(id, QSize(), {}, ""); |
|
|
|
download(id, QSize(), then, crop, radius); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|