[Improvement] Always show experimental settings
This commit is contained in:
parent
b2f835fadb
commit
abd6f9b53e
1 changed files with 4 additions and 11 deletions
|
|
@ -119,19 +119,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