mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-16 18:25:01 +00:00
Setting io.LogFilename to NULL disable default LogToFile() (part of #175)
This commit is contained in:
parent
85f432dc8d
commit
072c57b0ca
1 changed files with 4 additions and 0 deletions
|
@ -4394,7 +4394,11 @@ void ImGui::LogToFile(int max_depth, const char* filename)
|
|||
if (g.LogEnabled)
|
||||
return;
|
||||
if (!filename)
|
||||
{
|
||||
filename = g.IO.LogFilename;
|
||||
if (!filename)
|
||||
return;
|
||||
}
|
||||
|
||||
g.LogFile = fopen(filename, "ab");
|
||||
if (!g.LogFile)
|
||||
|
|
Loading…
Add table
Reference in a new issue