2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show Experimental settings in builds without autoupdates.

This commit is contained in:
John Preston
2022-07-19 14:28:49 +03:00
parent bb251627a9
commit 58fb14e292

View File

@@ -800,6 +800,19 @@ void Advanced::setupContent(not_null<Window::SessionController*> controller) {
if (cAutoUpdate()) {
addUpdate();
}
if (!HasUpdate()) {
AddSkip(content);
AddDivider(content);
AddSkip(content);
content->add(
CreateButton(
content,
tr::lng_settings_experimental(),
st::settingsButtonNoIcon)
)->setClickedCallback([=] {
_showOther.fire_copy(Experimental::Id());
});
}
AddSkip(content);
AddDivider(content);