Fixed ripple from top button in box about sponsored messages.

This commit is contained in:
23rd 2025-05-05 00:21:17 +03:00
parent 3a3cd1f856
commit 2184755fdf

View file

@ -279,9 +279,13 @@ void AboutBox(
const auto raw = menu->get();
raw->animatePhaseValue(
) | rpl::start_with_next([=](Ui::PopupMenu::AnimatePhase phase) {
top->setForceRippled(phase == Ui::PopupMenu::AnimatePhase::Shown
top->setForceRippled(false
|| phase == Ui::PopupMenu::AnimatePhase::Shown
|| phase == Ui::PopupMenu::AnimatePhase::StartShow);
}, top->lifetime());
raw->setDestroyedCallback([=] {
top->setForceRippled(false);
});
FillSponsored(
top,
Ui::Menu::CreateAddActionCallback(menu->get()),