mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Fixed handling of language switch for connection type in intro settings.
This commit is contained in:
@@ -72,11 +72,11 @@ void SetupConnectionType(
|
|||||||
const auto button = AddButtonWithLabel(
|
const auto button = AddButtonWithLabel(
|
||||||
container,
|
container,
|
||||||
tr::lng_settings_connection_type(),
|
tr::lng_settings_connection_type(),
|
||||||
rpl::single(
|
rpl::merge(
|
||||||
rpl::empty_value()
|
base::ObservableViewer(Global::RefConnectionTypeChanged()),
|
||||||
) | rpl::then(base::ObservableViewer(
|
// Handle language switch.
|
||||||
Global::RefConnectionTypeChanged()
|
tr::lng_connection_auto_connecting() | rpl::to_empty
|
||||||
)) | rpl::map(connectionType),
|
) | rpl::map(connectionType),
|
||||||
st::settingsButton);
|
st::settingsButton);
|
||||||
button->addClickHandler([=] {
|
button->addClickHandler([=] {
|
||||||
Ui::show(ProxiesBoxController::CreateOwningBox(account));
|
Ui::show(ProxiesBoxController::CreateOwningBox(account));
|
||||||
|
Reference in New Issue
Block a user