2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Improve custom language loading.

Apply custom language without relaunching the app.
This commit is contained in:
John Preston
2017-04-18 21:57:32 +03:00
parent 3f0b57ec11
commit 6fb980ca79
9 changed files with 54 additions and 41 deletions

View File

@@ -61,7 +61,7 @@ void fillCodes() {
}));
});
Codes.insert(qsl("loadlang"), [] {
Global::RefChooseCustomLang().notify();
Lang::Current().chooseCustomFile();
});
Codes.insert(qsl("debugfiles"), [] {
if (!cDebug()) return;