mirror of https://github.com/procxx/kepka.git
parent
d601b60903
commit
96556d4a4c
|
@ -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…
Reference in New Issue