Private
Public Access
0
0

fix(gui): Resolve Text Viewer docking conflict and robustify ID stack

- Update Text Viewer stable ID to match registry key exactly ('###Text Viewer') for stable docking.
- Ensure imgui.push_id always receives a string in imgui_scopes.py to prevent low-level access violations.
This commit is contained in:
2026-06-02 14:19:35 -04:00
parent deea87bf7a
commit e5a6dd7fd3
+1 -1
View File
@@ -3944,7 +3944,7 @@ def render_text_viewer_window(app: App) -> None:
"""Renders the standalone text/code/markdown viewer window."""
if not app.show_windows.get("Text Viewer", False): return
imgui.set_next_window_size(imgui.ImVec2(900, 700), imgui.Cond_.first_use_ever)
expanded, opened = imgui.begin(f"{app.text_viewer_title or 'Text Viewer'}###Text_Viewer", True, imgui.WindowFlags_.no_collapse)
expanded, opened = imgui.begin(f"{app.text_viewer_title or 'Text Viewer'}###Text Viewer", True, imgui.WindowFlags_.no_collapse)
app.show_windows["Text Viewer"] = bool(opened)
if not opened:
app.ui_editing_slices_file = None