Fix some round images being persisted as not round

This commit is contained in:
Nicolas Werner 2023-11-19 20:26:54 +01:00
parent ff82452816
commit ebbd8f3341
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -181,7 +181,7 @@ MxcImageProvider::download(const QString &id,
.arg(requestedSize.width()) .arg(requestedSize.width())
.arg(requestedSize.height()) .arg(requestedSize.height())
.arg(crop ? "crop" : "scale") .arg(crop ? "crop" : "scale")
.arg(cropLocally ? 0 : radius); .arg(radius);
QFileInfo fileInfo(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + QFileInfo fileInfo(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
"/media_cache", "/media_cache",
fileName); fileName);