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:
@@ -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('&'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user