mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fixed crash on dismiss of birthday suggestion.
This commit is contained in:
parent
4560a83441
commit
584e55a89c
2 changed files with 2 additions and 1 deletions
|
@ -359,7 +359,7 @@ rpl::producer<Ui::SlideWrap<Ui::RpWidget>*> TopBarSuggestionValue(
|
|||
fake->moveToLeft(
|
||||
leftPadding,
|
||||
(s.height() - fake->height()) / 2);
|
||||
}, content->lifetime());
|
||||
}, fake->lifetime());
|
||||
content->setLeftPadding(fake->width() + leftPadding);
|
||||
}
|
||||
|
||||
|
|
|
@ -194,6 +194,7 @@ rpl::producer<int> TopBarSuggestionContent::desiredHeightValue() const {
|
|||
}
|
||||
|
||||
void TopBarSuggestionContent::setHideCallback(Fn<void()> hideCallback) {
|
||||
Expects(_rightHide != nullptr);
|
||||
_rightHide->setClickedCallback(std::move(hideCallback));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue