mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added to settings support of showing back section from stack.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -78,6 +78,9 @@ public:
|
||||
[[nodiscard]] virtual rpl::producer<Type> sectionShowOther() {
|
||||
return nullptr;
|
||||
}
|
||||
[[nodiscard]] virtual rpl::producer<> sectionShowBack() {
|
||||
return nullptr;
|
||||
}
|
||||
[[nodiscard]] virtual rpl::producer<QString> title() = 0;
|
||||
virtual void sectionSaveChanges(FnMut<void()> done) {
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user