[Improvement] Always show experimental settings
This commit is contained in:
parent
36fe916eb6
commit
a84f41299a
1 changed files with 4 additions and 11 deletions
|
|
@ -117,19 +117,12 @@ void SetupUpdate(
|
||||||
st::settingsButton).get();
|
st::settingsButton).get();
|
||||||
|
|
||||||
if (showOther) {
|
if (showOther) {
|
||||||
const auto experimental = inner->add(
|
const auto experimental = container->add(
|
||||||
object_ptr<Ui::SlideWrap<Button>>(
|
|
||||||
inner,
|
|
||||||
object_ptr<Button>(
|
object_ptr<Button>(
|
||||||
inner,
|
container,
|
||||||
tr::lng_settings_experimental(),
|
tr::lng_settings_experimental(),
|
||||||
st::settingsButton)));
|
st::settingsButton));
|
||||||
if (!install) {
|
experimental->setClickedCallback([=] {
|
||||||
experimental->toggle(true, anim::type::instant);
|
|
||||||
} else {
|
|
||||||
experimental->toggleOn(install->toggledValue());
|
|
||||||
}
|
|
||||||
experimental->entity()->setClickedCallback([=] {
|
|
||||||
showOther(Type::Experimental);
|
showOther(Type::Experimental);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue