mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Replace cDebug() with Logs::DebugEnabled().
This commit is contained in:
@@ -529,7 +529,7 @@ void Call::createAndStartController(const MTPDphoneCall &call) {
|
||||
config.enableAGC = true;
|
||||
config.initTimeout = Global::CallConnectTimeoutMs() / 1000;
|
||||
config.recvTimeout = Global::CallPacketTimeoutMs() / 1000;
|
||||
if (cDebug()) {
|
||||
if (Logs::DebugEnabled()) {
|
||||
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
||||
auto callLogPath = callLogFolder + qsl("/last_call_log.txt");
|
||||
auto callLogNative = QFile::encodeName(QDir::toNativeSeparators(callLogPath));
|
||||
|
@@ -108,7 +108,8 @@ void TopBar::initControls() {
|
||||
setInfoLabels();
|
||||
_info->setClickedCallback([this] {
|
||||
if (auto call = _call.get()) {
|
||||
if (cDebug() && (_info->clickModifiers() & Qt::ControlModifier)) {
|
||||
if (Logs::DebugEnabled()
|
||||
&& (_info->clickModifiers() & Qt::ControlModifier)) {
|
||||
Ui::show(Box<DebugInfoBox>(_call));
|
||||
} else {
|
||||
Current().showInfoPanel(call);
|
||||
|
Reference in New Issue
Block a user