From ad238108bdc83e990045de8a77e0beaa00931e7a Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 24 Apr 2023 22:50:36 +0400 Subject: [PATCH] Fix background dimming slider initial visibility. --- Telegram/SourceFiles/boxes/background_preview_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/background_preview_box.cpp b/Telegram/SourceFiles/boxes/background_preview_box.cpp index 2c3167e13..6f0ac7db2 100644 --- a/Telegram/SourceFiles/boxes/background_preview_box.cpp +++ b/Telegram/SourceFiles/boxes/background_preview_box.cpp @@ -343,7 +343,7 @@ void BackgroundPreviewBox::createDimmingSlider(bool dark) { _dimmingWrap->move(0, top); }, _dimmingWrap->lifetime()); - _dimmingWrap->toggle(!dark, anim::type::instant); + _dimmingWrap->toggle(dark, anim::type::instant); _dimmingHeight = _dimmingWrap->heightValue(); _dimmingHeight.changes() | rpl::start_with_next([=] { update();