2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Apply lang pack versions from config.

This commit is contained in:
John Preston
2018-11-06 15:29:01 +04:00
parent 36b702702b
commit d0e48a02a1
3 changed files with 18 additions and 5 deletions

View File

@@ -776,6 +776,13 @@ void Instance::Private::configLoadDone(const MTPConfig &result) {
? qs(data.vsuggested_lang_code)
: QString();
Lang::CurrentCloudManager().setSuggestedLanguage(lang);
Lang::CurrentCloudManager().setCurrentVersions(
(data.has_lang_pack_version()
? data.vlang_pack_version.v
: 0),
(data.has_base_lang_pack_version()
? data.vbase_lang_pack_version.v
: 0));
if (data.has_autoupdate_url_prefix()) {
Local::writeAutoupdatePrefix(qs(data.vautoupdate_url_prefix));