diff --git a/Telegram/SourceFiles/info/settings/info_settings_widget.cpp b/Telegram/SourceFiles/info/settings/info_settings_widget.cpp index 08742a324e..dcd02d2039 100644 --- a/Telegram/SourceFiles/info/settings/info_settings_widget.cpp +++ b/Telegram/SourceFiles/info/settings/info_settings_widget.cpp @@ -54,6 +54,11 @@ Widget::Widget( controller->showSettings(type); }, _inner->lifetime()); + _inner->sectionShowBack( + ) | rpl::start_with_next([=] { + controller->showBackFromStack(); + }, _inner->lifetime()); + if (_pinnedToTop) { _inner->widthValue( ) | rpl::start_with_next([=](int w) { diff --git a/Telegram/SourceFiles/settings/settings_common.h b/Telegram/SourceFiles/settings/settings_common.h index 43ed3d6801..27f48cec32 100644 --- a/Telegram/SourceFiles/settings/settings_common.h +++ b/Telegram/SourceFiles/settings/settings_common.h @@ -78,6 +78,9 @@ public: [[nodiscard]] virtual rpl::producer sectionShowOther() { return nullptr; } + [[nodiscard]] virtual rpl::producer<> sectionShowBack() { + return nullptr; + } [[nodiscard]] virtual rpl::producer title() = 0; virtual void sectionSaveChanges(FnMut done) { done();