Skip to content

Commit

Permalink
demo_imgui_bundle: band aid fix for #293
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 18, 2024
1 parent 8745086 commit 8ae753e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/imgui_bundle/demos_python/demo_imgui_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8ae753e

Please sign in to comment.