mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use rpl in some widgets and effects.
This commit is contained in:
@@ -243,9 +243,9 @@ void StickersBox::prepare() {
|
||||
preloadArchivedSets();
|
||||
}
|
||||
setNoContentMargin(true);
|
||||
_tabs->setSectionActivatedCallback([this] {
|
||||
switchTab();
|
||||
});
|
||||
_tabs->sectionActivated()
|
||||
| rpl::on_next([this](int) { switchTab(); })
|
||||
| rpl::start(lifetime());
|
||||
refreshTabs();
|
||||
}
|
||||
if (_installed.widget() && _section != Section::Installed) _installed.widget()->hide();
|
||||
@@ -1532,7 +1532,9 @@ void StickersBox::Inner::setRemovedSets(const Stickers::Order &removed) {
|
||||
}
|
||||
}
|
||||
|
||||
void StickersBox::Inner::setVisibleTopBottom(int visibleTop, int visibleBottom) {
|
||||
void StickersBox::Inner::visibleTopBottomUpdated(
|
||||
int visibleTop,
|
||||
int visibleBottom) {
|
||||
_visibleTop = visibleTop;
|
||||
_visibleBottom = visibleBottom;
|
||||
updateScrollbarWidth();
|
||||
|
Reference in New Issue
Block a user