diff --git a/bindings/imgui_bundle/demos_cpp/demo_imgui_bundle.cpp b/bindings/imgui_bundle/demos_cpp/demo_imgui_bundle.cpp index f34ba28a..021832ef 100644 --- a/bindings/imgui_bundle/demos_cpp/demo_imgui_bundle.cpp +++ b/bindings/imgui_bundle/demos_cpp/demo_imgui_bundle.cpp @@ -29,7 +29,8 @@ using VoidFunction = std::function; 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();