mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Replace cDebug() with Logs::DebugEnabled().
This commit is contained in:
@@ -242,7 +242,7 @@ bool CodeWidget::codeSubmitFail(const RPCError &error) {
|
||||
_sentRequest = MTP::send(MTPaccount_GetPassword(), rpcDone(&CodeWidget::gotPassword), rpcFail(&CodeWidget::codeSubmitFail));
|
||||
return true;
|
||||
}
|
||||
if (cDebug()) { // internal server error
|
||||
if (Logs::DebugEnabled()) { // internal server error
|
||||
auto text = err + ": " + error.description();
|
||||
showCodeError([text] { return text; });
|
||||
} else {
|
||||
@@ -351,7 +351,7 @@ bool CodeWidget::noTelegramCodeFail(const RPCError &error) {
|
||||
}
|
||||
if (MTP::isDefaultHandledError(error)) return false;
|
||||
|
||||
if (cDebug()) { // internal server error
|
||||
if (Logs::DebugEnabled()) { // internal server error
|
||||
auto text = error.type() + ": " + error.description();
|
||||
showCodeError([text] { return text; });
|
||||
} else {
|
||||
|
@@ -254,7 +254,7 @@ bool PhoneWidget::phoneSubmitFail(const RPCError &error) {
|
||||
[phone] { SendToBannedHelp(phone); Ui::hideLayer(); }));
|
||||
return true;
|
||||
}
|
||||
if (cDebug()) { // internal server error
|
||||
if (Logs::DebugEnabled()) { // internal server error
|
||||
auto text = err + ": " + error.description();
|
||||
showPhoneError([text] { return text; });
|
||||
} else {
|
||||
|
@@ -151,7 +151,7 @@ bool PwdCheckWidget::pwdSubmitFail(const RPCError &error) {
|
||||
} else if (err == qstr("PASSWORD_EMPTY")) {
|
||||
goBack();
|
||||
}
|
||||
if (cDebug()) { // internal server error
|
||||
if (Logs::DebugEnabled()) { // internal server error
|
||||
auto text = err + ": " + error.description();
|
||||
showError([text] { return text; });
|
||||
} else {
|
||||
@@ -188,7 +188,7 @@ bool PwdCheckWidget::codeSubmitFail(const RPCError &error) {
|
||||
_codeField->showError();
|
||||
return true;
|
||||
}
|
||||
if (cDebug()) { // internal server error
|
||||
if (Logs::DebugEnabled()) { // internal server error
|
||||
auto text = err + ": " + error.description();
|
||||
showError([text] { return text; });
|
||||
} else {
|
||||
|
@@ -161,7 +161,7 @@ bool SignupWidget::nameSubmitFail(const RPCError &error) {
|
||||
_last->setFocus();
|
||||
return true;
|
||||
}
|
||||
if (cDebug()) { // internal server error
|
||||
if (Logs::DebugEnabled()) { // internal server error
|
||||
auto text = err + ": " + error.description();
|
||||
showError([text] { return text; });
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user