Private
Public Access
0
0

fix(ctx): Remove erroneous recursive call to render_text_viewer_window

This commit is contained in:
2026-05-16 17:58:19 -04:00
parent c7f5b6801f
commit e770515328
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -4197,8 +4197,7 @@ def render_text_viewer_window(app: App) -> None:
imgui.close_current_popup()
imgui.end_popup()
#endregion: Inject File Modal
render_text_viewer_window(app)
return
def render_patch_modal(app: App) -> None:
+1 -1
View File
@@ -98,7 +98,7 @@ def test_text_viewer_window_invoked_in_render_loop():
content = f.read()
call_pattern = r'render_text_viewer_window\(app\)'
matches = list(re.finditer(call_pattern, content))
assert len(matches) >= 2, f"render_text_viewer_window should be called at least 2 times (once in window, once in modal hook), found {len(matches)}"
assert len(matches) >= 1, f"render_text_viewer_window should be called at least once in the main render loop, found {len(matches)}"
if __name__ == '__main__':
pytest.main([__file__, '-v'])