Fix dimming edition for new wallpapers.
This commit is contained in:
parent
2b2d190d2b
commit
66e7f1d490
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue