mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix dimming edition for new wallpapers.
This commit is contained in:
parent
2b2d190d2b
commit
66e7f1d490
1 changed files with 3 additions and 1 deletions
|
@ -199,7 +199,9 @@ BackgroundPreviewBox::BackgroundPreviewBox(
|
||||||
, _appNightMode(Window::Theme::IsNightModeValue())
|
, _appNightMode(Window::Theme::IsNightModeValue())
|
||||||
, _boxDarkMode(_appNightMode.current())
|
, _boxDarkMode(_appNightMode.current())
|
||||||
, _dimmingIntensity(std::clamp(paper.patternIntensity(), 0, 100))
|
, _dimmingIntensity(std::clamp(paper.patternIntensity(), 0, 100))
|
||||||
, _dimmed(_forPeer && paper.document() && !paper.isPattern()) {
|
, _dimmed(_forPeer
|
||||||
|
&& (paper.document() || paper.localThumbnail())
|
||||||
|
&& !paper.isPattern()) {
|
||||||
if (_media) {
|
if (_media) {
|
||||||
_media->thumbnailWanted(_paper.fileOrigin());
|
_media->thumbnailWanted(_paper.fileOrigin());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue