2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Apply language with app restart if logged in.

Confirm and restart if logged in, just quickly apply if not.
This commit is contained in:
John Preston
2017-05-30 20:58:25 +03:00
parent d51fd7b3ad
commit 665a1acfd8
14 changed files with 138 additions and 68 deletions

View File

@@ -71,9 +71,7 @@ void FeedLangTestingKey(int key) {
}
if (codeState == 4) {
codeState = 0;
auto testLanguageId = (Lang::Current().id() == qstr("TEST_X")) ? qsl("TEST_0") : qsl("TEST_X");
Lang::CurrentCloudManager().switchToLanguage(testLanguageId);
Lang::CurrentCloudManager().switchToTestLanguage();
}
}