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
1 changed files with 4 additions and 1 deletions

View File

@ -298,7 +298,10 @@ QString WallPaper::key() const {
? QString::number(_id)
: StringFromColors(backgroundColors()))
: ("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('&'));
}