mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Version 4.6.2: Fix translating to fallback language.
This commit is contained in:
@@ -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>(
|
||||||
|
Reference in New Issue
Block a user