[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(); 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());
}); });
} }