2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Make dimming intensity part of the cache key.

This commit is contained in:
John Preston
2023-04-23 18:51:47 +04:00
parent 33e66d21bd
commit b569078e96

View File

@@ -298,7 +298,10 @@ QString WallPaper::key() const {
? QString::number(_id) ? QString::number(_id)
: StringFromColors(backgroundColors())) : StringFromColors(backgroundColors()))
: ("bg/" + _slug); : ("bg/" + _slug);
const auto params = collectShareParams(); auto params = collectShareParams();
if (_document && !isPattern()) {
params += u"&intensity="_q + QString::number(_intensity);
}
return params.isEmpty() ? base : (base + '?' + params.join('&')); return params.isEmpty() ? base : (base + '?' + params.join('&'));
} }