mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
d601b60903
commit
96556d4a4c
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ not_null<Ui::RpWidget*> SettingsWidget::setupButtons(
|
||||||
}));
|
}));
|
||||||
|
|
||||||
value() | rpl::map([](const Settings &data) {
|
value() | rpl::map([](const Settings &data) {
|
||||||
return data.types != Types(0);
|
return (data.types != Types(0)) || data.onlySinglePeer();
|
||||||
}) | rpl::distinct_until_changed(
|
}) | rpl::distinct_until_changed(
|
||||||
) | rpl::start_with_next([=](bool canStart) {
|
) | rpl::start_with_next([=](bool canStart) {
|
||||||
refreshButtons(buttons, canStart);
|
refreshButtons(buttons, canStart);
|
||||||
|
|
Loading…
Add table
Reference in a new issue