mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Split adaptive changed rpl::producer into two.
This commit is contained in:
@@ -25,13 +25,20 @@ void Adaptive::setChatLayout(ChatLayout value) {
|
||||
_chatLayout = value;
|
||||
}
|
||||
|
||||
rpl::producer<> Adaptive::changed() const {
|
||||
rpl::producer<> Adaptive::value() const {
|
||||
return rpl::merge(
|
||||
Core::App().settings().adaptiveForWideValue() | rpl::to_empty,
|
||||
_chatLayout.changes() | rpl::to_empty,
|
||||
_layout.changes() | rpl::to_empty);
|
||||
}
|
||||
|
||||
rpl::producer<> Adaptive::changes() const {
|
||||
return rpl::merge(
|
||||
Core::App().settings().adaptiveForWideChanges() | rpl::to_empty,
|
||||
_chatLayout.changes() | rpl::to_empty,
|
||||
_layout.changes() | rpl::to_empty);
|
||||
}
|
||||
|
||||
rpl::producer<bool> Adaptive::oneColumnValue() const {
|
||||
return _layout.value(
|
||||
) | rpl::map([=] {
|
||||
|
||||
Reference in New Issue
Block a user