Skip to content

Commit

Permalink
demo_imgui_bundle: band aid fix for #293, c++ side
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 19, 2024
1 parent bd7d372 commit dcd6bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/imgui_bundle/demos_cpp/demo_imgui_bundle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ using VoidFunction = std::function<void(void)>;

void ShowModuleDemo(const std::string& demoFilename, VoidFunction demoFunction)
{

if (ImGui::GetFrameCount() < 2) // cf https://github.com/pthom/imgui_bundle/issues/293
return;
if (ImGui::CollapsingHeader("Code for this demo"))
ShowPythonVsCppFile(demoFilename.c_str());
demoFunction();
Expand Down

0 comments on commit dcd6bee

Please sign in to comment.