mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix dimming edition for new wallpapers.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user