mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 4.6.2: Fix translating to fallback language.
This commit is contained in:
parent
c314e43a44
commit
7fa229537d
1 changed files with 1 additions and 3 deletions
|
@ -288,9 +288,7 @@ void TranslateBar::setup(not_null<History*> history) {
|
||||||
}, button->lifetime());
|
}, button->lifetime());
|
||||||
|
|
||||||
button->setClickedCallback([=] {
|
button->setClickedCallback([=] {
|
||||||
translateTo(history->translatedTo()
|
translateTo(history->translatedTo() ? LanguageId() : _to.current());
|
||||||
? LanguageId()
|
|
||||||
: Core::App().settings().translateTo());
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const auto label = Ui::CreateChild<Ui::FlatLabel>(
|
const auto label = Ui::CreateChild<Ui::FlatLabel>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue