2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-19 14:46:58 +00:00

Use improved rpl::start().

This commit is contained in:
John Preston
2017-09-18 20:04:45 +03:00
parent ee9763c98f
commit 766e7dadb1
31 changed files with 145 additions and 179 deletions

View File

@@ -115,13 +115,11 @@ RpWidget *VerticalLayout::addChild(
width() - margins.left() - margins.right(),
height() - margins.top() - margins.bottom());
weak->heightValue()
| rpl::on_next([this, weak](int) {
| rpl::start([this, weak](int) {
childHeightUpdated(weak);
})
| rpl::on_done([this, weak] {
}, [this, weak] {
removeChild(weak);
})
| rpl::start(lifetime());
}, lifetime());
return weak;
}
return nullptr;