mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +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();
|
const auto raw = menu->get();
|
||||||
raw->animatePhaseValue(
|
raw->animatePhaseValue(
|
||||||
) | rpl::start_with_next([=](Ui::PopupMenu::AnimatePhase phase) {
|
) | 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);
|
|| phase == Ui::PopupMenu::AnimatePhase::StartShow);
|
||||||
}, top->lifetime());
|
}, top->lifetime());
|
||||||
|
raw->setDestroyedCallback([=] {
|
||||||
|
top->setForceRippled(false);
|
||||||
|
});
|
||||||
FillSponsored(
|
FillSponsored(
|
||||||
top,
|
top,
|
||||||
Ui::Menu::CreateAddActionCallback(menu->get()),
|
Ui::Menu::CreateAddActionCallback(menu->get()),
|
||||||
|
|
Loading…
Add table
Reference in a new issue