mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-16 00:54:19 +00:00
Stack Tool: Docs (#4631) + also prevent Metrics window from displaying twice.
This commit is contained in:
parent
25332fa5ac
commit
fbe78b1a3a
3 changed files with 12 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue