mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix login Qr-code when main DC is switched.
This commit is contained in:
parent
01bcdf10ee
commit
06e2724731
1 changed files with 5 additions and 1 deletions
|
@ -189,7 +189,11 @@ QrWidget::QrWidget(
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
setupControls();
|
setupControls();
|
||||||
refreshCode();
|
account->mtp().mainDcIdValue(
|
||||||
|
) | rpl::start_with_next([=] {
|
||||||
|
api().request(base::take(_requestId)).cancel();
|
||||||
|
refreshCode();
|
||||||
|
}, lifetime());
|
||||||
}
|
}
|
||||||
|
|
||||||
int QrWidget::errorTop() const {
|
int QrWidget::errorTop() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue