mirror of https://github.com/procxx/kepka.git
Add additional QR code login debug logs.
This commit is contained in:
parent
6bbcec0c23
commit
5c079b0bbd
|
@ -70,9 +70,11 @@ void PhoneWidget::setupQrLogin() {
|
||||||
) | rpl::then(
|
) | rpl::then(
|
||||||
account().appConfig().refreshed()
|
account().appConfig().refreshed()
|
||||||
) | rpl::map([=] {
|
) | rpl::map([=] {
|
||||||
return account().appConfig().get<QString>(
|
const auto result = account().appConfig().get<QString>(
|
||||||
"qr_login_code",
|
"qr_login_code",
|
||||||
"disabled");
|
"disabled");
|
||||||
|
DEBUG_LOG(("PhoneWidget.qr_login_code: %1").arg(result));
|
||||||
|
return result;
|
||||||
}) | rpl::filter([](const QString &value) {
|
}) | rpl::filter([](const QString &value) {
|
||||||
return (value != "disabled");
|
return (value != "disabled");
|
||||||
}) | rpl::take(1) | rpl::start_with_next([=] {
|
}) | rpl::take(1) | rpl::start_with_next([=] {
|
||||||
|
@ -81,6 +83,8 @@ void PhoneWidget::setupQrLogin() {
|
||||||
tr::lng_phone_to_qr(tr::now));
|
tr::lng_phone_to_qr(tr::now));
|
||||||
qrLogin->show();
|
qrLogin->show();
|
||||||
|
|
||||||
|
DEBUG_LOG(("PhoneWidget.qrLogin link created and shown."));
|
||||||
|
|
||||||
rpl::combine(
|
rpl::combine(
|
||||||
sizeValue(),
|
sizeValue(),
|
||||||
qrLogin->widthValue()
|
qrLogin->widthValue()
|
||||||
|
|
|
@ -34,6 +34,7 @@ void StartWidget::submit() {
|
||||||
const auto qrLogin = account().appConfig().get<QString>(
|
const auto qrLogin = account().appConfig().get<QString>(
|
||||||
"qr_login_code",
|
"qr_login_code",
|
||||||
"disabled");
|
"disabled");
|
||||||
|
DEBUG_LOG(("qr_login_code: %1").arg(qrLogin));
|
||||||
if (qrLogin == "primary") {
|
if (qrLogin == "primary") {
|
||||||
goNext<QrWidget>();
|
goNext<QrWidget>();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -47,6 +47,7 @@ void AppConfig::refresh() {
|
||||||
_data.emplace_or_assign(qs(data.vkey()), data.vvalue());
|
_data.emplace_or_assign(qs(data.vkey()), data.vvalue());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
DEBUG_LOG(("getAppConfig result handled."));
|
||||||
}
|
}
|
||||||
_refreshed.fire({});
|
_refreshed.fire({});
|
||||||
}).fail([=](const RPCError &error) {
|
}).fail([=](const RPCError &error) {
|
||||||
|
|
Loading…
Reference in New Issue