2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

added some additional logging for file downloadings

This commit is contained in:
John Preston
2016-03-17 21:03:08 +03:00
parent ddc802c0af
commit 47c7f76f2c
5 changed files with 74 additions and 9 deletions

View File

@@ -811,11 +811,23 @@ void SettingsInner::keyPressEvent(QKeyEvent *e) {
Ui::showLayer(box);
from = size;
break;
} else if (str == qstr("loadlang")) {
chooseCustomLang();
} else if (str == qstr("loadlang")) {
chooseCustomLang();
} else if (str == qstr("debugfiles") && cDebug()) {
if (DebugLogging::FileLoader()) {
Global::RefDebugLoggingFlags() &= ~DebugLogging::FileLoaderFlag;
} else {
Global::RefDebugLoggingFlags() |= DebugLogging::FileLoaderFlag;
}
Ui::showLayer(new InformBox(DebugLogging::FileLoader() ? "Enabled file download logging" : "Disabled file download logging"));
} else if (str == qstr("crashplease")) {
t_assert(!"Crashed in Settings!");
} else if (qsl("debugmode").startsWith(str) || qsl("testmode").startsWith(str) || qsl("loadlang").startsWith(str) || qsl("crashplease").startsWith(str)) {
} else if (
qsl("debugmode").startsWith(str) ||
qsl("testmode").startsWith(str) ||
qsl("loadlang").startsWith(str) ||
qsl("debugfiles").startsWith(str) ||
qsl("crashplease").startsWith(str)) {
break;
}
++from;