mirror of https://github.com/procxx/kepka.git
Url auth checkboxes checked by default.
This commit is contained in:
parent
87caa58456
commit
01054858a4
|
@ -157,7 +157,7 @@ not_null<Ui::RpWidget*> UrlAuthBox::setupContent(
|
||||||
object_ptr<Ui::Checkbox>(
|
object_ptr<Ui::Checkbox>(
|
||||||
result,
|
result,
|
||||||
QString(),
|
QString(),
|
||||||
false,
|
true,
|
||||||
st::urlAuthCheckbox),
|
st::urlAuthCheckbox),
|
||||||
style::margins(
|
style::margins(
|
||||||
st::boxPadding.left(),
|
st::boxPadding.left(),
|
||||||
|
@ -187,6 +187,9 @@ not_null<Ui::RpWidget*> UrlAuthBox::setupContent(
|
||||||
) | rpl::then(
|
) | rpl::then(
|
||||||
auth->checkedChanges()
|
auth->checkedChanges()
|
||||||
) | rpl::start_with_next([=](bool checked) {
|
) | rpl::start_with_next([=](bool checked) {
|
||||||
|
if (!checked) {
|
||||||
|
allow->setChecked(false);
|
||||||
|
}
|
||||||
allow->setDisabled(!checked);
|
allow->setDisabled(!checked);
|
||||||
}, auth->lifetime());
|
}, auth->lifetime());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue