Fix dimming edition for new wallpapers.

This commit is contained in:
John Preston 2023-04-20 23:05:54 +04:00
parent 2b2d190d2b
commit 66e7f1d490
1 changed files with 3 additions and 1 deletions

View File

@ -199,7 +199,9 @@ BackgroundPreviewBox::BackgroundPreviewBox(
, _appNightMode(Window::Theme::IsNightModeValue())
, _boxDarkMode(_appNightMode.current())
, _dimmingIntensity(std::clamp(paper.patternIntensity(), 0, 100))
, _dimmed(_forPeer && paper.document() && !paper.isPattern()) {
, _dimmed(_forPeer
&& (paper.document() || paper.localThumbnail())
&& !paper.isPattern()) {
if (_media) {
_media->thumbnailWanted(_paper.fileOrigin());
}