mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix crash in gifts repaint.
This commit is contained in:
parent
7312e34f46
commit
8b2a549fab
1 changed files with 3 additions and 1 deletions
|
@ -1849,7 +1849,9 @@ void SendGiftBox(
|
||||||
auto &packs = window->session().giftBoxStickersPacks();
|
auto &packs = window->session().giftBoxStickersPacks();
|
||||||
packs.updated() | rpl::start_with_next([=] {
|
packs.updated() | rpl::start_with_next([=] {
|
||||||
for (const auto &button : state->buttons) {
|
for (const auto &button : state->buttons) {
|
||||||
button->update();
|
if (const auto raw = button.get()) {
|
||||||
|
raw->update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, raw->lifetime());
|
}, raw->lifetime());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue