Add and use only rpl::start_with_*() methods.

This commit is contained in:
John Preston
2017-09-27 11:43:35 +03:00
parent ed061252a5
commit 086e46c162
41 changed files with 384 additions and 1113 deletions
+3 -1
View File
@@ -245,7 +245,9 @@ void StickersBox::prepare() {
}
setNoContentMargin(true);
_tabs->sectionActivated()
| rpl::start([this](int) { switchTab(); }, lifetime());
| rpl::start_with_next(
[this](int) { switchTab(); },
lifetime());
refreshTabs();
}
if (_installed.widget() && _section != Section::Installed) _installed.widget()->hide();