mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +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(
|
||||
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));
|
||||
|
|
Loading…
Add table
Reference in a new issue