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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user