2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow creating EmojiListWidget without SessionController.

This commit is contained in:
John Preston
2022-08-20 07:45:44 +03:00
parent c9a98ae723
commit 33b266175d
15 changed files with 192 additions and 123 deletions

View File

@@ -1198,13 +1198,19 @@ TabbedSelector::Inner::Inner(
QWidget *parent,
not_null<Window::SessionController*> controller,
Window::GifPauseReason level)
: RpWidget(parent)
, _controller(controller)
, _level(level) {
: Inner(
parent,
&controller->session(),
Window::PausedIn(controller, level)) {
}
Main::Session &TabbedSelector::Inner::session() const {
return controller()->session();
TabbedSelector::Inner::Inner(
QWidget *parent,
not_null<Main::Session*> session,
Fn<bool()> paused)
: RpWidget(parent)
, _session(session)
, _paused(paused) {
}
rpl::producer<int> TabbedSelector::Inner::scrollToRequests() const {