mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show Experimental settings in builds without autoupdates.
This commit is contained in:
parent
bb251627a9
commit
58fb14e292
1 changed files with 13 additions and 0 deletions
|
@ -800,6 +800,19 @@ void Advanced::setupContent(not_null<Window::SessionController*> controller) {
|
||||||
if (cAutoUpdate()) {
|
if (cAutoUpdate()) {
|
||||||
addUpdate();
|
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);
|
AddSkip(content);
|
||||||
AddDivider(content);
|
AddDivider(content);
|
||||||
|
|
Loading…
Add table
Reference in a new issue