2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -244,8 +244,7 @@ void StickersBox::prepare() {
}
setNoContentMargin(true);
_tabs->sectionActivated()
| rpl::on_next([this](int) { switchTab(); })
| rpl::start(lifetime());
| rpl::start([this](int) { switchTab(); }, lifetime());
refreshTabs();
}
if (_installed.widget() && _section != Section::Installed) _installed.widget()->hide();