From 8ae753e0c30df7e0e2a9c791ddc9c171518d86a9 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 18 Dec 2024 18:05:17 +0100 Subject: [PATCH] demo_imgui_bundle: band aid fix for #293 --- bindings/imgui_bundle/demos_python/demo_imgui_bundle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/imgui_bundle/demos_python/demo_imgui_bundle.py b/bindings/imgui_bundle/demos_python/demo_imgui_bundle.py index 47671290..a589ad81 100644 --- a/bindings/imgui_bundle/demos_python/demo_imgui_bundle.py +++ b/bindings/imgui_bundle/demos_python/demo_imgui_bundle.py @@ -23,6 +23,8 @@ def show_module_demo(demo_filename: str, demo_function: Callable[[], None]) -> None: + if imgui.get_frame_count() < 2: # cf https://github.com/pthom/imgui_bundle/issues/293 + return if imgui.collapsing_header("Code for this demo"): demo_utils.show_python_vs_cpp_file(demo_filename) demo_function()