MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / UpdateLogLocation

Method UpdateLogLocation

src/ConEmu/SetPgFeatures.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void CSetPgFeatures::UpdateLogLocation() const
99{
100 // Cut log file to directory only
101 const auto pLogger = gpConEmu->GetLogger();
102 CEStr lsLogPath(pLogger ? pLogger->GetLogFileName() : L"");
103 LPCWSTR pszName = lsLogPath.IsEmpty() ? nullptr : PointToName(lsLogPath.ms_Val);
104 if (pszName)
105 *(wchar_t*)pszName = 0;
106 SetDlgItemText(gpSetCls->GetPage(thi_Features), tDebugLogDir, lsLogPath);
107}
108
109LRESULT CSetPgFeatures::OnEditChanged(HWND hDlg, WORD nCtrlId)
110{

Callers 1

OnBtn_DebugLogMethod · 0.80

Calls 5

PointToNameFunction · 0.85
GetLoggerMethod · 0.80
GetLogFileNameMethod · 0.80
GetPageMethod · 0.80
IsEmptyMethod · 0.45

Tested by

no test coverage detected