Version 4.6.2: Fix translating to fallback language.

This commit is contained in:
John Preston 2023-02-08 18:11:43 +04:00
parent c314e43a44
commit 7fa229537d
1 changed files with 1 additions and 3 deletions

View File

@ -288,9 +288,7 @@ void TranslateBar::setup(not_null<History*> history) {
}, button->lifetime());
button->setClickedCallback([=] {
translateTo(history->translatedTo()
? LanguageId()
: Core::App().settings().translateTo());
translateTo(history->translatedTo() ? LanguageId() : _to.current());
});
const auto label = Ui::CreateChild<Ui::FlatLabel>(