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