MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / WriteDebugModeSetting

Function WriteDebugModeSetting

Telegram/SourceFiles/core/launcher.cpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void WriteDebugModeSetting() {
110 auto file = QFile(DebugModeSettingPath());
111 if (file.open(QIODevice::WriteOnly)) {
112 file.write(Logs::DebugEnabled() ? "1" : "0");
113 }
114}
115
116void ComputeDebugMode() {
117 Logs::SetDebugEnabled(cAlphaVersion() != 0);

Callers 1

writeDebugModeSettingMethod · 0.85

Calls 4

DebugModeSettingPathFunction · 0.85
DebugEnabledFunction · 0.85
openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected