Fixed handling of language switch for connection type in intro settings.

This commit is contained in:
23rd 2020-07-19 22:10:20 +03:00
parent d46b9d024e
commit 9e0b046213

View file

@ -72,11 +72,11 @@ void SetupConnectionType(
const auto button = AddButtonWithLabel(
container,
tr::lng_settings_connection_type(),
rpl::single(
rpl::empty_value()
) | rpl::then(base::ObservableViewer(
Global::RefConnectionTypeChanged()
)) | rpl::map(connectionType),
rpl::merge(
base::ObservableViewer(Global::RefConnectionTypeChanged()),
// Handle language switch.
tr::lng_connection_auto_connecting() | rpl::to_empty
) | rpl::map(connectionType),
st::settingsButton);
button->addClickHandler([=] {
Ui::show(ProxiesBoxController::CreateOwningBox(account));