mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fix legacy-style connect in Intro.
This commit is contained in:
parent
197b3c1cb5
commit
298215542e
@ -53,13 +53,13 @@ PhoneWidget::PhoneWidget(
|
|||||||
|
|
||||||
connect(_country, &CountryInput::codeChanged, [=](const QString &code) {
|
connect(_country, &CountryInput::codeChanged, [=](const QString &code) {
|
||||||
_code->codeSelected(code);
|
_code->codeSelected(code);
|
||||||
|
_phone->chooseCode(code);
|
||||||
});
|
});
|
||||||
_code->codeChanged(
|
_code->codeChanged(
|
||||||
) | rpl::start_with_next([=](const QString &code) {
|
) | rpl::start_with_next([=](const QString &code) {
|
||||||
_country->onChooseCode(code);
|
_country->onChooseCode(code);
|
||||||
_phone->chooseCode(code);
|
_phone->chooseCode(code);
|
||||||
}, _code->lifetime());
|
}, _code->lifetime());
|
||||||
connect(_country, SIGNAL(codeChanged(const QString &)), _phone, SLOT(onChooseCode(const QString &)));
|
|
||||||
_code->addedToNumber(
|
_code->addedToNumber(
|
||||||
) | rpl::start_with_next([=](const QString &added) {
|
) | rpl::start_with_next([=](const QString &added) {
|
||||||
_phone->addedToNumber(added);
|
_phone->addedToNumber(added);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user