mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fixed ripple from top button in box about sponsored messages.
This commit is contained in:
parent
3a3cd1f856
commit
2184755fdf
1 changed files with 5 additions and 1 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Reference in a new issue