mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added to settings support of showing back section from stack.
This commit is contained in:
parent
de3b30ed7d
commit
549d7c77e5
2 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,11 @@ Widget::Widget(
|
||||||
controller->showSettings(type);
|
controller->showSettings(type);
|
||||||
}, _inner->lifetime());
|
}, _inner->lifetime());
|
||||||
|
|
||||||
|
_inner->sectionShowBack(
|
||||||
|
) | rpl::start_with_next([=] {
|
||||||
|
controller->showBackFromStack();
|
||||||
|
}, _inner->lifetime());
|
||||||
|
|
||||||
if (_pinnedToTop) {
|
if (_pinnedToTop) {
|
||||||
_inner->widthValue(
|
_inner->widthValue(
|
||||||
) | rpl::start_with_next([=](int w) {
|
) | rpl::start_with_next([=](int w) {
|
||||||
|
|
|
@ -78,6 +78,9 @@ public:
|
||||||
[[nodiscard]] virtual rpl::producer<Type> sectionShowOther() {
|
[[nodiscard]] virtual rpl::producer<Type> sectionShowOther() {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
[[nodiscard]] virtual rpl::producer<> sectionShowBack() {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
[[nodiscard]] virtual rpl::producer<QString> title() = 0;
|
[[nodiscard]] virtual rpl::producer<QString> title() = 0;
|
||||||
virtual void sectionSaveChanges(FnMut<void()> done) {
|
virtual void sectionSaveChanges(FnMut<void()> done) {
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Add table
Reference in a new issue