mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix login Qr-code when main DC is switched.
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user