mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Remove twidget header.
This commit is contained in:
@@ -254,7 +254,7 @@ void Widget::historyMove(Direction direction) {
|
||||
}
|
||||
|
||||
void Widget::hideAndDestroy(object_ptr<Ui::FadeWrap<Ui::RpWidget>> widget) {
|
||||
const auto weak = make_weak(widget.data());
|
||||
const auto weak = Ui::MakeWeak(widget.data());
|
||||
widget->hide(anim::type::normal);
|
||||
widget->shownValue(
|
||||
) | rpl::start_with_next([=](bool shown) {
|
||||
@@ -447,7 +447,7 @@ void Widget::showTerms(Fn<void()> callback) {
|
||||
if (getData()->termsLock.text.text.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
const auto weak = make_weak(this);
|
||||
const auto weak = Ui::MakeWeak(this);
|
||||
const auto box = Ui::show(callback
|
||||
? Box<Window::TermsBox>(
|
||||
getData()->termsLock,
|
||||
|
Reference in New Issue
Block a user