[Improvement] Always show experimental settings

This commit is contained in:
Eric Kotato 2022-09-11 05:27:15 +03:00
parent 36fe916eb6
commit a84f41299a

View file

@ -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);
}); });
} }