2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix build with TDESKTOP_DISABLE_AUTOUPDATE.

Fixes #4655.
This commit is contained in:
John Preston
2018-05-07 00:34:58 +03:00
parent 48c1576d7f
commit cc2c13d018
3 changed files with 10 additions and 0 deletions

View File

@@ -48,9 +48,11 @@ void fillCodes() {
Messenger::Instance().onSwitchTestMode();
}));
});
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
Codes.insert(qsl("testupdate"), [] {
Core::UpdateChecker().test();
});
#endif // TDESKTOP_DISABLE_AUTOUPDATE
Codes.insert(qsl("loadlang"), [] {
Lang::CurrentCloudManager().switchToLanguage(qsl("custom"));
});