[Improvement] Always show experimental settings

This commit is contained in:
Eric Kotato 2022-09-11 05:27:15 +03:00 committed by Eric Kotato
parent 865d7c1e55
commit 23974e94dc

View file

@ -134,19 +134,12 @@ void SetupUpdate(
st::settingsButtonNoIcon).get();
if (showOther) {
const auto experimental = inner->add(
object_ptr<Ui::SlideWrap<Button>>(
inner,
const auto experimental = container->add(
CreateButton(
inner,
container,
tr::lng_settings_experimental(),
st::settingsButtonNoIcon)));
if (!install) {
experimental->toggle(true, anim::type::instant);
} else {
experimental->toggleOn(install->toggledValue());
}
experimental->entity()->setClickedCallback([=] {
st::settingsButtonNoIcon));
experimental->setClickedCallback([=] {
showOther(Experimental::Id());
});
}