2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve rpl::combine() and rpl::start().

This commit is contained in:
John Preston
2017-09-18 19:39:45 +03:00
parent 5e7aa4ff81
commit ee9763c98f
26 changed files with 2119 additions and 403 deletions

View File

@@ -288,8 +288,9 @@ void EditPrivacyBox::createWidgets() {
auto createExceptionLink = [this](Exception exception) {
exceptionLink(exception).create(this, object_ptr<Ui::LinkButton>(this, exceptionLinkText(exception)), exceptionLinkMargins());
exceptionLink(exception)->heightValue()
| rpl::on_next([this](int) { resizeToWidth(width()); })
| rpl::start(lifetime());
| rpl::start(
[this](int) { resizeToWidth(width()); },
lifetime());
exceptionLink(exception)->entity()->setClickedCallback([this, exception] { editExceptionUsers(exception); });
};