mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed handling of language switch for connection type in intro settings.
This commit is contained in:
parent
d46b9d024e
commit
9e0b046213
1 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Reference in a new issue