2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-23 15:06:09 +00:00

Always start with QR-code login.

This commit is contained in:
John Preston
2021-08-30 20:01:39 +03:00
parent 52a6282eb9
commit ae40ea9336
3 changed files with 20 additions and 50 deletions

View File

@@ -31,15 +31,7 @@ StartWidget::StartWidget(
void StartWidget::submit() {
account().destroyStaleAuthorizationKeys();
const auto qrLogin = account().appConfig().get<QString>(
"qr_login_code",
"[not-set]");
DEBUG_LOG(("qr_login_code: %1").arg(qrLogin));
if (qrLogin == "primary") {
goNext<QrWidget>();
} else {
goNext<PhoneWidget>();
}
goNext<QrWidget>();
}
rpl::producer<QString> StartWidget::nextButtonText() const {