mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +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(
|
fake->moveToLeft(
|
||||||
leftPadding,
|
leftPadding,
|
||||||
(s.height() - fake->height()) / 2);
|
(s.height() - fake->height()) / 2);
|
||||||
}, content->lifetime());
|
}, fake->lifetime());
|
||||||
content->setLeftPadding(fake->width() + leftPadding);
|
content->setLeftPadding(fake->width() + leftPadding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,7 @@ rpl::producer<int> TopBarSuggestionContent::desiredHeightValue() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TopBarSuggestionContent::setHideCallback(Fn<void()> hideCallback) {
|
void TopBarSuggestionContent::setHideCallback(Fn<void()> hideCallback) {
|
||||||
|
Expects(_rightHide != nullptr);
|
||||||
_rightHide->setClickedCallback(std::move(hideCallback));
|
_rightHide->setClickedCallback(std::move(hideCallback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue