Stack Tool: Docs (#4631) + also prevent Metrics window from displaying twice.

This commit is contained in:
ocornut
2021-10-06 18:16:43 +02:00
parent 25332fa5ac
commit fbe78b1a3a
3 changed files with 12 additions and 6 deletions

View File

@ -11205,7 +11205,7 @@ void ImGui::ShowMetricsWindow(bool* p_open)
if (cfg->ShowStackTool)
ShowStackToolWindow(&cfg->ShowStackTool);
if (!Begin("Dear ImGui Metrics/Debugger", p_open))
if (!Begin("Dear ImGui Metrics/Debugger", p_open) || GetCurrentWindow()->BeginCount > 1)
{
End();
return;