[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();
|
||||
|
||||
if (showOther) {
|
||||
const auto experimental = inner->add(
|
||||
object_ptr<Ui::SlideWrap<Button>>(
|
||||
inner,
|
||||
const auto experimental = container->add(
|
||||
object_ptr<Button>(
|
||||
inner,
|
||||
container,
|
||||
tr::lng_settings_experimental(),
|
||||
st::settingsButton)));
|
||||
if (!install) {
|
||||
experimental->toggle(true, anim::type::instant);
|
||||
} else {
|
||||
experimental->toggleOn(install->toggledValue());
|
||||
}
|
||||
experimental->entity()->setClickedCallback([=] {
|
||||
st::settingsButton));
|
||||
experimental->setClickedCallback([=] {
|
||||
showOther(Type::Experimental);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue