Enable secondary QR code login by default.

This commit is contained in:
John Preston 2020-02-12 19:42:59 +04:00
parent 5c079b0bbd
commit f5fdcc3af0
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void PhoneWidget::setupQrLogin() {
) | rpl::map([=] {
const auto result = account().appConfig().get<QString>(
"qr_login_code",
"disabled");
"[not-set]");
DEBUG_LOG(("PhoneWidget.qr_login_code: %1").arg(result));
return result;
}) | rpl::filter([](const QString &value) {

View File

@ -33,7 +33,7 @@ void StartWidget::submit() {
account().destroyStaleAuthorizationKeys();
const auto qrLogin = account().appConfig().get<QString>(
"qr_login_code",
"disabled");
"[not-set]");
DEBUG_LOG(("qr_login_code: %1").arg(qrLogin));
if (qrLogin == "primary") {
goNext<QrWidget>();