mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
ShowTestWindow: fixed example app from not displaying when header is collaposed.
This commit is contained in:
parent
fd8752df8d
commit
3572b04c69
1 changed files with 8 additions and 9 deletions
|
|
@ -6887,18 +6887,17 @@ void ImGui::ShowTestWindow(bool* open)
|
|||
}
|
||||
}
|
||||
|
||||
if (ImGui::CollapsingHeader("App Examples"))
|
||||
{
|
||||
static bool show_app_console = false;
|
||||
static bool show_app_long_text = false;
|
||||
if (ImGui::CollapsingHeader("App Examples"))
|
||||
{
|
||||
ImGui::Checkbox("Console", &show_app_console);
|
||||
ImGui::Checkbox("Long text display", &show_app_long_text);
|
||||
|
||||
}
|
||||
if (show_app_console)
|
||||
ShowExampleAppConsole(&show_app_console);
|
||||
if (show_app_long_text)
|
||||
ShowExampleAppLongText(&show_app_long_text);
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue