Skip to content

Commit 8ae753e

Browse files
committed
demo_imgui_bundle: band aid fix for #293
1 parent 8745086 commit 8ae753e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/imgui_bundle/demos_python/demo_imgui_bundle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424

2525
def show_module_demo(demo_filename: str, demo_function: Callable[[], None]) -> None:
26+
if imgui.get_frame_count() < 2: # cf https://github.com/pthom/imgui_bundle/issues/293
27+
return
2628
if imgui.collapsing_header("Code for this demo"):
2729
demo_utils.show_python_vs_cpp_file(demo_filename)
2830
demo_function()

0 commit comments

Comments
 (0)