mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Show Experimental settings in builds without autoupdates.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user