mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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()) {
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue